Modifier and Type | Method and Description |
---|---|
static JsonKey |
Jsoner.mintJsonKey(String key,
Object value)
Creates a new JsonKey that wraps the given string and value.
|
Modifier and Type | Method and Description |
---|---|
BigDecimal |
JsonObject.getBigDecimal(JsonKey key)
A convenience method that assumes there is a BigDecimal, Number, or String at the given key.
|
BigDecimal |
JsonObject.getBigDecimalOrDefault(JsonKey key)
A convenience method that assumes there is a BigDecimal, Number, or String at the given key.
|
Boolean |
JsonObject.getBoolean(JsonKey key)
A convenience method that assumes there is a Boolean or String value at the given key.
|
Boolean |
JsonObject.getBooleanOrDefault(JsonKey key)
A convenience method that assumes there is a Boolean or String value at the given key.
|
Byte |
JsonObject.getByte(JsonKey key)
A convenience method that assumes there is a Number or String value at the given key.
|
Byte |
JsonObject.getByteOrDefault(JsonKey key)
A convenience method that assumes there is a Number or String value at the given key.
|
<T extends Collection<?>> |
JsonObject.getCollection(JsonKey key)
A convenience method that assumes there is a Collection at the given key.
|
<T extends Collection<?>> |
JsonObject.getCollectionOrDefault(JsonKey key)
A convenience method that assumes there is a Collection at the given key.
|
Double |
JsonObject.getDouble(JsonKey key)
A convenience method that assumes there is a Number or String value at the given key.
|
Double |
JsonObject.getDoubleOrDefault(JsonKey key)
A convenience method that assumes there is a Number or String value at the given key.
|
Float |
JsonObject.getFloat(JsonKey key)
A convenience method that assumes there is a Number or String value at the given key.
|
Float |
JsonObject.getFloatOrDefault(JsonKey key)
A convenience method that assumes there is a Number or String value at the given key.
|
Integer |
JsonObject.getInteger(JsonKey key)
A convenience method that assumes there is a Number or String value at the given key.
|
Integer |
JsonObject.getIntegerOrDefault(JsonKey key)
A convenience method that assumes there is a Number or String value at the given key.
|
Long |
JsonObject.getLong(JsonKey key)
A convenience method that assumes there is a Number or String value at the given key.
|
Long |
JsonObject.getLongOrDefault(JsonKey key)
A convenience method that assumes there is a Number or String value at the given key.
|
<T extends Map<?,?>> |
JsonObject.getMap(JsonKey key)
A convenience method that assumes there is a Map at the given key.
|
<T extends Map<?,?>> |
JsonObject.getMapOrDefault(JsonKey key)
A convenience method that assumes there is a Map at the given key.
|
Short |
JsonObject.getShort(JsonKey key)
A convenience method that assumes there is a Number or String value at the given key.
|
Short |
JsonObject.getShortOrDefault(JsonKey key)
A convenience method that assumes there is a Number or String value at the given key.
|
String |
JsonObject.getString(JsonKey key)
A convenience method that assumes there is a Boolean, Number, or String value at the given key.
|
String |
JsonObject.getStringOrDefault(JsonKey key)
A convenience method that assumes there is a Boolean, Number, or String value at the given key.
|
void |
JsonObject.requireKeys(JsonKey... keys)
Ensures the given keys are present.
|
Copyright © 2018. All rights reserved.