Interface ConfigEntry.ITestValue<T>

Type Parameters:
T - The type of the value.
Enclosing class:
ConfigEntry<V>

public static interface ConfigEntry.ITestValue<T>
Interface that can be used to verify config values.
  • Method Summary

    Modifier and Type
    Method
    Description
    test(T value)
    Checks if a given value is valid.
  • Method Details

    • test

      T test(T value)
      Checks if a given value is valid. If it is, it returns that value. If it isn't, it is changed so that it is valid.

      For example to check if a value doesn't exceed a certain threshold.

      Parameters:
      value - The value to check.
      Returns:
      The value if it was valid, otherwise the value made valid.