Class Value


  • public abstract class Value
    extends Object
    Wrapper for dimension values.
    Author:
    steinar
    • Constructor Detail

      • Value

        public Value()
    • Method Detail

      • getType

        public abstract Value.Discriminator getType()
        Show the (single) supported standard type representation of a Value instance.
      • of

        public static Value of​(long value)
        Helper method to wrap a long as a Value. The instance returned may or may not be unique.
        Parameters:
        value - the value to wrap
        Returns:
        an immutable wrapper
      • of

        public static Value of​(double value)
        Helper method to wrap a double as a Value. The instance returned may or may not be unique.
        Parameters:
        value - the value to wrap
        Returns:
        an immutable wrapper
      • of

        public static Value of​(String value)
        Helper method to wrap a string as a Value. The instance returned may or may not be unique.
        Parameters:
        value - the value to wrap
        Returns:
        an immutable wrapper