Interface ConfigValue<TYPE>

All Superinterfaces:
Consumer<TYPE>, Supplier<TYPE>
All Known Implementing Classes:
KeyBackedConfigValue

public interface ConfigValue<TYPE> extends Supplier<TYPE>, Consumer<TYPE>
  • Field Details

  • Method Details

    • validator

      ConfigValidator<TYPE> validator()
    • reset

      boolean reset()
      Returns true if the value was changed to the default value, false if it was already at the default value.
      Returns:
      true if the value was changed to the default value, false if it was already at the default value
    • update

      default boolean update(UnaryOperator<TYPE> transformer)
    • update

      boolean update(TYPE newValue)
    • accept

      default void accept(TYPE newValue)
      Specified by:
      accept in interface Consumer<TYPE>