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
-
Method Summary
Modifier and TypeMethodDescriptiondouble
asDouble()
Returns a Java double if no precision is lost in the conversion.float
asFloat()
Returns a Java float if no precision is lost in the conversion.int
asInt()
Returns a Java int if no precision is lost in the conversion.long
asLong()
Returns a Java long if no precision is lost in the conversion.asNumber()
boolean
int
hashCode()
toString()
type()
Methods inherited from class org.neo4j.driver.internal.value.NumberValueAdapter
asObject
Methods 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, values
Methods 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:
asNumber
in interfaceValue
- Specified by:
asNumber
in classNumberValueAdapter<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 interfaceValue
- Overrides:
asLong
in classValueAdapter
- 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 interfaceValue
- Overrides:
asInt
in classValueAdapter
- 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 interfaceValue
- Overrides:
asDouble
in classValueAdapter
- 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 interfaceValue
- Overrides:
asFloat
in classValueAdapter
- Returns:
- the value as a Java float.
-
toString
- Specified by:
toString
in interfaceValue
- Specified by:
toString
in classValueAdapter
-
equals
- Specified by:
equals
in interfaceValue
- Specified by:
equals
in classValueAdapter
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceValue
- Specified by:
hashCode
in classValueAdapter
-