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.
        Returns:
        All possible values
      • valueClass

        Class<T> valueClass()
        Gets the class type of the StateProperty's values.
        Returns:
        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.
        Parameters:
        value - The value to parse
        Returns:
        The actual value