Interface StateProperty<T extends Comparable<T>>

    • Method Detail

      • possibleValues

        Collection<T> possibleValues()
        Gets all possible values for a specific StateProperty. The included values may not be in any particular order. The returned Collection should be considered immutable.
        All possible values
      • valueClass

        Class<T> valueClass()
        Gets the class type of the StateProperty's values.
        The value class
      • parseValue

        Optional<T> parseValue​(String value)
        Attempts to parse the provided value as a value dictated possible by this state property or Optional.empty() otherwise.
        value - The value to parse
        The actual value