Class Value.IntValue

  • All Implemented Interfaces:
    Value
    Enclosing interface:
    Value

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

      • IntValue

        public IntValue​(long value)
        Parameters:
        value - the whole number to carry
    • Method Detail

      • get

        public long get()
        Returns:
        the integral 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