public final class HazelcastJsonValue extends Object implements Comparable<HazelcastJsonValue>
HazelcastJsonValue can be queried for fields in Hazelcast's queries. See
Predicates
.
When querying, numbers in JSON strings are treated as either
Long
or Double
. Strings, booleans and nulls are
treated as their Java counterparts.
HazelcastJsonValue stores the given string as is. It is not validated.
Ill-formatted JSON strings may cause false positive or false negative
results in queries. null
string is not allowed.
Constructor and Description |
---|
HazelcastJsonValue(String value)
Creates a HazelcastJsonValue from the given string.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HazelcastJsonValue o) |
boolean |
equals(Object o) |
String |
getValue() |
int |
hashCode() |
String |
toString()
Returns unaltered string that was used to create this object.
|
public String getValue()
@Nonnull public String toString()
public int compareTo(@Nonnull HazelcastJsonValue o)
compareTo
in interface Comparable<HazelcastJsonValue>
Copyright © 2023 Hazelcast, Inc.. All rights reserved.