Class FloatValue

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

public class FloatValue extends NumberValueAdapter<Double>
  • Constructor Details

    • FloatValue

      public FloatValue(double val)
  • Method Details

    • type

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

      public Double asNumber()
      Specified by:
      asNumber in interface Value
      Specified by:
      asNumber in class NumberValueAdapter<Double>
      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.
    • 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
    • toString

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