Class ConfigValues


  • public final class ConfigValues
    extends Object
    Factory for config values.
    • Method Detail

      • empty

        public static <T> ConfigValue<T> empty()
        Simple empty value that can be used e.g. for unit testing. All ConfigValues use equals method that only cares about the optional value.
        Type Parameters:
        T - type of the value
        Returns:
        a config value that is empty
      • simpleValue

        public static <T> ConfigValue<T> simpleValue​(T value)
        Simple value that can be used e.g. for unit testing. All ConfigValues use equals method that only cares about the optional value.
        Type Parameters:
        T - type of the value
        Parameters:
        value - value to use
        Returns:
        a config value that uses the value provided