public final class NoValue extends Value
The NULL object of the Value world. Is implemented as a singleton, to allow direct reference equality checks (==), and avoid unnecessary object creation.
| Modifier and Type | Method and Description |
|---|---|
Object |
asObjectCopy()
Return this value as a regular java boxed primitive, String or primitive array.
|
int |
computeHash() |
boolean |
eq(Object other) |
boolean |
equals(Value other) |
String |
getTypeName() |
<T> T |
map(ValueMapper<T> mapper) |
NumberType |
numberType() |
String |
prettyPrint()
Returns a json-like string representation of the current value.
|
Boolean |
ternaryEquals(AnyValue other) |
String |
toString() |
long |
updateHash(HashFunction hashFunction,
long hash) |
ValueGroup |
valueGroup() |
<E extends Exception> |
writeTo(ValueWriter<E> writer) |
asObject, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, equals, hashCode64, isNaN, parseHeaderInformation, writeToequals, hashCode, isSequenceValuepublic static final NoValue NO_VALUE
public Boolean ternaryEquals(AnyValue other)
ternaryEquals in class Valuepublic <T> T map(ValueMapper<T> mapper)
public long updateHash(HashFunction hashFunction, long hash)
updateHash in class Valuepublic int computeHash()
computeHash in class AnyValuepublic <E extends Exception> void writeTo(ValueWriter<E> writer) throws E extends Exception
public Object asObjectCopy()
ValueasObjectCopy in class Valuepublic String prettyPrint()
ValueprettyPrint in class Valuepublic String getTypeName()
getTypeName in class AnyValuepublic ValueGroup valueGroup()
valueGroup in class Valuepublic NumberType numberType()
numberType in class ValueCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.