public final class Values extends Object
The values library centers around the Value class, which represents a value in Neo4j. Values can be correctly checked for equality over different primitive representations, including consistent hashCodes and sorting.
To create Values use the factory methods in the Values class.
Values come in two major categories: Storable and Virtual. Storable values are valid values for node, relationship and graph properties. Virtual values are not supported as property values, but might be created and returned as part of cypher execution. These include Node, Relationship and Path.
| Modifier and Type | Field and Description |
|---|---|
static ValueComparator |
COMPARATOR
Default value comparator.
|
static DoubleValue |
E |
static ArrayValue |
EMPTY_BOOLEAN_ARRAY |
static ArrayValue |
EMPTY_BYTE_ARRAY |
static ArrayValue |
EMPTY_CHAR_ARRAY |
static ArrayValue |
EMPTY_DOUBLE_ARRAY |
static ArrayValue |
EMPTY_FLOAT_ARRAY |
static ArrayValue |
EMPTY_INT_ARRAY |
static ArrayValue |
EMPTY_LONG_ARRAY |
static ArrayValue |
EMPTY_SHORT_ARRAY |
static TextValue |
EMPTY_STRING |
static TextArray |
EMPTY_TEXT_ARRAY |
static BooleanValue |
FALSE |
static Value |
MAX_NUMBER |
static Value |
MAX_STRING |
static Value |
MIN_NUMBER |
static Value |
MIN_STRING |
static Value |
NO_VALUE |
static DoubleValue |
PI |
static BooleanValue |
TRUE |
static Value |
ZERO_FLOAT |
static IntegralValue |
ZERO_INT |
public static final Value MIN_NUMBER
public static final Value MAX_NUMBER
public static final Value ZERO_FLOAT
public static final IntegralValue ZERO_INT
public static final Value MIN_STRING
public static final Value MAX_STRING
public static final BooleanValue TRUE
public static final BooleanValue FALSE
public static final TextValue EMPTY_STRING
public static final DoubleValue E
public static final DoubleValue PI
public static final ArrayValue EMPTY_SHORT_ARRAY
public static final ArrayValue EMPTY_BOOLEAN_ARRAY
public static final ArrayValue EMPTY_BYTE_ARRAY
public static final ArrayValue EMPTY_CHAR_ARRAY
public static final ArrayValue EMPTY_INT_ARRAY
public static final ArrayValue EMPTY_LONG_ARRAY
public static final ArrayValue EMPTY_FLOAT_ARRAY
public static final ArrayValue EMPTY_DOUBLE_ARRAY
public static final TextArray EMPTY_TEXT_ARRAY
public static final ValueComparator COMPARATOR
To get Comparability semantics, use .ternaryCompare
public static final Value NO_VALUE
public static boolean isNumberValue(Object value)
public static boolean isBooleanValue(Object value)
public static boolean isTextValue(Object value)
public static boolean isArrayValue(Value value)
public static boolean isTemporalValue(Value value)
public static boolean isTemporalArray(Value value)
public static double coerceToDouble(Value value)
public static TextValue utf8Value(byte[] bytes)
public static TextValue utf8Value(byte[] bytes, int offset, int length)
public static GeoPointValue geoPointValue(double lat, double lon)
public static GeoPointValue geoPointValue(GeoPoint geoPoint)
public static GeoCircleValue geoCircleValue(double latitude, double longitude, double radius)
public static GeoCircleValue geoCircleValue(GeoCircle geoCircle)
public static GeoRectValue geoRectValue(GeoPoint northWest, GeoPoint southEast)
public static GeoRectValue geoRectValue(GeoRect geoRect)
public static GeoHashValue geoHashValue(GeoHash geoHash)
public static GeoCollectionValue geoCollectionValue(GeoCollection geoCollection)
public static GeoPolygonValue geoPolygonValue(GeoPolygon geoPolygon)
public static GeoLineValue geoLineValue(GeoLine geoLine)
public static GeoShapeValue geoShapeValue(GeoShape geoShape)
public static NumberValue numberValue(Number number)
public static LongValue longValue(long value)
public static IntValue intValue(int value)
public static ShortValue shortValue(short value)
public static ByteValue byteValue(byte value)
public static BooleanValue booleanValue(boolean value)
public static CharValue charValue(char value)
public static DoubleValue doubleValue(double value)
public static FloatValue floatValue(float value)
public static ByteArray byteArray(byte[] value)
public static LongArray longArray(long[] value)
public static IntArray intArray(int[] value)
public static DoubleArray doubleArray(double[] value)
public static FloatArray floatArray(float[] value)
public static BooleanArray booleanArray(boolean[] value)
public static CharArray charArray(char[] value)
public static ShortArray shortArray(short[] value)
public static DurationValue durationValue(TemporalAmount value)
public static DateTimeArray dateTimeArray(ZonedDateTime[] values)
public static LocalDateTimeArray localDateTimeArray(LocalDateTime[] values)
public static LocalTimeArray localTimeArray(LocalTime[] values)
public static TimeArray timeArray(OffsetTime[] values)
public static DurationArray durationArray(DurationValue[] values)
public static DurationArray durationArray(TemporalAmount[] values)
public static Value of(Object value)
Beware, this method is intended for converting externally supplied values to the internal Value type, and to make testing convenient. Passing a Value as in parameter should never be needed, and will throw an UnsupportedOperationException.
This method does defensive copying of arrays, while the explicit *Array() factory methods do not.
value - Object to convert to Valuepublic static Value[] values(Object... objects)
Converts an array of object values to the internal Value type. See of(java.lang.Object).
@Deprecated public static Object asObject(Value value)
public static Value minValue(ValueGroup valueGroup, Value value)
public static Value maxValue(ValueGroup valueGroup, Value value)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.