Class IntegerValue

All Implemented Interfaces:
org.neo4j.driver.internal.AsValue, InternalValue, MapAccessor, MapAccessorWithDefaultValue, Value

public class IntegerValue extends NumberValueAdapter<Long>
  • Constructor Details

    • IntegerValue

      public IntegerValue(long val)
  • Method Details

    • type

      public Type type()
      Returns:
      The type of this value as defined in the Neo4j type system
    • asNumber

      public Long asNumber()
      Specified by:
      asNumber in interface Value
      Specified by:
      asNumber in class NumberValueAdapter<Long>
      Returns:
      the value as a Java Number, if possible.
    • asLong

      public long asLong()
      Description copied from interface: Value
      Returns a Java long if no precision is lost in the conversion.
      Specified by:
      asLong in interface Value
      Overrides:
      asLong in class ValueAdapter
      Returns:
      the value as a Java long.
    • asInt

      public int asInt()
      Description copied from interface: Value
      Returns a Java int if no precision is lost in the conversion.
      Specified by:
      asInt in interface Value
      Overrides:
      asInt in class ValueAdapter
      Returns:
      the value as a Java int.
    • asDouble

      public double asDouble()
      Description copied from interface: Value
      Returns a Java double if no precision is lost in the conversion.
      Specified by:
      asDouble in interface Value
      Overrides:
      asDouble in class ValueAdapter
      Returns:
      the value as a Java double.
    • asFloat

      public float asFloat()
      Description copied from interface: Value
      Returns a Java float if no precision is lost in the conversion.
      Specified by:
      asFloat in interface Value
      Overrides:
      asFloat in class ValueAdapter
      Returns:
      the value as a Java float.
    • toString

      public String toString()
      Specified by:
      toString in interface Value
      Specified by:
      toString in class ValueAdapter
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Value
      Specified by:
      equals in class ValueAdapter
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Value
      Specified by:
      hashCode in class ValueAdapter