Class SettingInfo<T>

java.lang.Object
net.minheur.potoflux.settings.SettingInfo<T>
Type Parameters:
T - type of the setting. One of PreferencesTypes.valueClass

public class SettingInfo<T> extends Object
Container with infos about a setting
  • Constructor Details

  • Method Details

    • getType

      public PreferencesTypes getType()
      Getter for the type
      Returns:
      type
    • getActualValue

      @Nullable public T getActualValue()
      Getter for the actualValue
      Returns:
      actualValue
    • setActualValue

      public void setActualValue(Object actualValue)
      Sets the value from an Object. It needs to be the type of type
      Parameters:
      actualValue - to set in actualValue
      Throws:
      IllegalArgumentException - if the given Object isn't the type of type