Type Parameters:
T - value type held

public interface Setting<T>
Represents a modifiable setting.
Since:
3.0.0
Author:
MrIvanPlays
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares 2 Setting objects to check whether they are equal.
    key()
    Returns the key with which this setting will be associated with.
    static <T> Setting<T>
    of(String key, Class<T> type)
     
    Returns the Class type this setting shall hold.
  • Method Details

    • of

      static <T> Setting<T> of(String key, Class<T> type)
    • key

      Returns the key with which this setting will be associated with.
      Returns:
      setting key
    • type

      Returns the Class type this setting shall hold.
      Returns:
      value type this setting holds
    • equals

      boolean equals(Object o)
      Compares 2 Setting objects to check whether they are equal.
      Overrides:
      equals in class Object
      Parameters:
      o - setting object
      Returns:
      whether equals