java.lang.Object
org.neo4j.driver.internal.types.InternalMapAccessorWithDefaultValue
org.neo4j.driver.internal.value.ValueAdapter
org.neo4j.driver.internal.value.NumberValueAdapter<Long>
org.neo4j.driver.internal.value.IntegerValue
- All Implemented Interfaces:
org.neo4j.driver.internal.AsValue,InternalValue,MapAccessor,MapAccessorWithDefaultValue,Value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleasDouble()Returns a Java double if no precision is lost in the conversion.floatasFloat()Returns a Java float if no precision is lost in the conversion.intasInt()Returns a Java int if no precision is lost in the conversion.longasLong()Returns a Java long if no precision is lost in the conversion.asNumber()booleaninthashCode()toString()type()Methods inherited from class org.neo4j.driver.internal.value.NumberValueAdapter
asObjectMethods inherited from class org.neo4j.driver.internal.value.ValueAdapter
asBoolean, asBoolean, asByteArray, asByteArray, asDouble, asEntity, asFloat, asInt, asIsoDuration, asIsoDuration, asList, asList, asList, asList, asLocalDate, asLocalDate, asLocalDateTime, asLocalDateTime, asLocalTime, asLocalTime, asLong, asMap, asMap, asMap, asMap, asNode, asOffsetDateTime, asOffsetDateTime, asOffsetTime, asOffsetTime, asPath, asPoint, asPoint, asRelationship, asString, asString, asValue, asZonedDateTime, asZonedDateTime, computeOrDefault, containsKey, get, get, hasType, isEmpty, isFalse, isNull, isTrue, keys, size, typeConstructor, values, valuesMethods inherited from class org.neo4j.driver.internal.types.InternalMapAccessorWithDefaultValue
get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get
-
Constructor Details
-
IntegerValue
public IntegerValue(long val)
-
-
Method Details
-
type
- Returns:
- The type of this value as defined in the Neo4j type system
-
asNumber
- Specified by:
asNumberin interfaceValue- Specified by:
asNumberin classNumberValueAdapter<Long>- Returns:
- the value as a Java Number, if possible.
-
asLong
public long asLong()Description copied from interface:ValueReturns a Java long if no precision is lost in the conversion.- Specified by:
asLongin interfaceValue- Overrides:
asLongin classValueAdapter- Returns:
- the value as a Java long.
-
asInt
public int asInt()Description copied from interface:ValueReturns a Java int if no precision is lost in the conversion.- Specified by:
asIntin interfaceValue- Overrides:
asIntin classValueAdapter- Returns:
- the value as a Java int.
-
asDouble
public double asDouble()Description copied from interface:ValueReturns a Java double if no precision is lost in the conversion.- Specified by:
asDoublein interfaceValue- Overrides:
asDoublein classValueAdapter- Returns:
- the value as a Java double.
-
asFloat
public float asFloat()Description copied from interface:ValueReturns a Java float if no precision is lost in the conversion.- Specified by:
asFloatin interfaceValue- Overrides:
asFloatin classValueAdapter- Returns:
- the value as a Java float.
-
toString
- Specified by:
toStringin interfaceValue- Specified by:
toStringin classValueAdapter
-
equals
- Specified by:
equalsin interfaceValue- Specified by:
equalsin classValueAdapter
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceValue- Specified by:
hashCodein classValueAdapter
-