Class KeyBackedConfigValue<TYPE>

java.lang.Object
com.wildfire.common.config.value.KeyBackedConfigValue<TYPE>
All Implemented Interfaces:
ConfigValue<TYPE>, Consumer<TYPE>, Supplier<TYPE>

public class KeyBackedConfigValue<TYPE> extends Object implements ConfigValue<TYPE>
  • Method Details

    • validator

      public ConfigValidator<TYPE> validator()
      Specified by:
      validator in interface ConfigValue<TYPE>
    • get

      public TYPE get()
      Specified by:
      get in interface Supplier<TYPE>
    • reset

      public boolean reset()
      Description copied from interface: ConfigValue
      Returns true if the value was changed to the default value, false if it was already at the default value.
      Specified by:
      reset in interface ConfigValue<TYPE>
      Returns:
      true if the value was changed to the default value, false if it was already at the default value
    • update

      public boolean update(TYPE newValue)
      Specified by:
      update in interface ConfigValue<TYPE>
    • toString

      public String toString()
      Overrides:
      toString in class Object