public interface Value
Represents a lazily decoded JSON token or container managed by the index-overlay parser.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public BigDecimal |
bigDecimalValue()Converts this token to a BigDecimal. |
|
public BigInteger |
bigIntegerValue()Converts this token to a BigInteger. |
|
public boolean |
booleanValue()Converts this token to a boolean value. |
|
public byte |
byteValue()Converts this token to a byte value. |
|
public char |
charValue()Converts this token to a single character. |
|
public void |
chop()Copies any shared backing buffer into a dedicated slice. |
|
public Date |
dateValue()Converts this token to a Date. |
|
public double |
doubleValue()Converts this token to a double value. |
|
public float |
floatValue()Converts this token to a float value. |
|
public int |
intValue()Converts this token to an int value. |
|
public boolean |
isContainer()Indicates whether this value wraps a map or a collection. |
|
public long |
longValue()Converts this token to a long value. |
|
public short |
shortValue()Converts this token to a short value. |
|
public String |
stringValue()Returns the string form using the value's configured decoding policy. |
|
public String |
stringValueEncoded()Returns the fully decoded string form. |
<T extends Enum> |
public T |
toEnum(Class<T> cls)Converts this token to an enum constant. |
|
public Object |
toValue()Materializes this token as a regular Java value. |
Converts this token to a BigDecimal.
Converts this token to a BigInteger.
Converts this token to a boolean value.
Converts this token to a byte value.
Converts this token to a single character.
Copies any shared backing buffer into a dedicated slice.
Converts this token to a double value.
Converts this token to a float value.
Converts this token to an int value.
Indicates whether this value wraps a map or a collection.
true for container valuesConverts this token to a long value.
Converts this token to a short value.
Returns the string form using the value's configured decoding policy.
Returns the fully decoded string form.
Converts this token to an enum constant.
cls - enum type to resolveT - enum typeMaterializes this token as a regular Java value.