public interface MapAccessor
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
asMap()
Return the underlying map as a map of string keys and values converted using
Value.asObject(). |
<T> Map<String,T> |
asMap(Function<Value,T> mapFunction) |
boolean |
containsKey(String key)
Check if the list of keys contains the given key
|
Value |
get(String key)
Retrieve the value of the property with the given key
|
Iterable<String> |
keys()
Retrieve the keys of the underlying map
|
int |
size()
Retrieve the number of entries in this map
|
Iterable<Value> |
values()
Retrieve all values of the underlying collection
|
<T> Iterable<T> |
values(Function<Value,T> mapFunction)
Map and retrieve all values of the underlying collection
|
Iterable<String> keys()
boolean containsKey(String key)
key - the keyValue get(String key)
key - the key of the propertyNullValue if no such key existsClientException - if record has not been initializedint size()
Iterable<Value> values()
<T> Iterable<T> values(Function<Value,T> mapFunction)
T - the target type of mappingmapFunction - a function to map from Value to T. See Values for some predefined functions, such
as Values.ofBoolean(), Values.ofList(Function).Map<String,Object> asMap()
Value.asObject().
This is equivalent to calling asMap(Function) with Values.ofObject().<T> Map<String,T> asMap(Function<Value,T> mapFunction)
T - the type of map valuesmapFunction - a function to map from Value to T. See Values for some predefined functions, such
as Values.ofBoolean(), Values.ofList(Function).for a long list of built-in conversion functionsCopyright © 2017. All rights reserved.