Class Value.RealValue

  • All Implemented Interfaces:
    Value
    Enclosing interface:
    Value

    public static final class Value.RealValue
    extends Object
    implements Value
    • Constructor Detail

      • RealValue

        public RealValue​(double value)
        Parameters:
        value - the floating point number to carry
    • Method Detail

      • get

        public double get()
        Returns:
        the floating point value
      • kind

        public ValueKind kind()
        Specified by:
        kind in interface Value
        Returns:
        the discriminator identifying which variant this is
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object