public class MapImpl extends Object implements Value.Map
Value.List, Value.Map| Constructor and Description |
|---|
MapImpl() |
MapImpl(HashMap<String,Value> delegate) |
| Modifier and Type | Method and Description |
|---|---|
Value.List |
asList() |
MapImpl |
asMap() |
void |
clear() |
Value |
compute(String key,
BiFunction<? super String,? super Value,? extends Value> remappingFunction) |
Value |
computeIfAbsent(String key,
Function<? super String,? extends Value> mappingFunction) |
Value |
computeIfPresent(String key,
BiFunction<? super String,? super Value,? extends Value> remappingFunction) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Value>> |
entrySet() |
boolean |
equals(Object o) |
void |
forEach(BiConsumer<? super String,? super Value> action) |
Value |
get(Object key) |
Object |
getObject()
Read the field value as the original object.
|
Object |
getObject(String fieldName)
Read the field having the specified name.
|
Value |
getOrDefault(Object key,
Value defaultValue) |
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
Value |
merge(String key,
Value value,
BiFunction<? super Value,? super Value,? extends Value> remappingFunction) |
Value |
put(String key,
Value value) |
void |
putAll(Map<? extends String,? extends Value> m) |
Value |
putIfAbsent(String key,
Value value) |
Value |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
Value |
replace(String key,
Value value) |
boolean |
replace(String key,
Value oldValue,
Value newValue) |
void |
replaceAll(BiFunction<? super String,? super Value,? extends Value> function) |
int |
size() |
Collection<Value> |
values() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitnewList, of, of, of, ofJson, ofJson, ofJson, ofJsongetAs, getBoolean, getBooleanAs, getByte, getByteAs, getDouble, getDoubleAs, getFloat, getFloatAs, getInt, getIntAs, getLong, getLongAs, getShort, getShortAs, getString, getStringAsgetAs, getBoolean, getBooleanAs, getByte, getByteAs, getDouble, getDoubleAs, getFloat, getFloatAs, getInt, getIntAs, getLong, getLongAs, getShort, getShortAs, getString, getStringAspublic Object getObject()
FieldAccessorsgetObject in interface FieldAccessorspublic Object getObject(String fieldName)
NamedFieldsAccessorsgetObject in interface NamedFieldsAccessorsfieldName - The field name, non-null.public Value.List asList()
public boolean containsKey(Object key)
containsKey in interface Map<String,Value>public boolean containsValue(Object value)
containsValue in interface Map<String,Value>public Value getOrDefault(Object key, Value defaultValue)
getOrDefault in interface Map<String,Value>public Value putIfAbsent(String key, Value value)
putIfAbsent in interface Map<String,Value>public Value computeIfAbsent(String key, Function<? super String,? extends Value> mappingFunction)
computeIfAbsent in interface Map<String,Value>public Value computeIfPresent(String key, BiFunction<? super String,? super Value,? extends Value> remappingFunction)
computeIfPresent in interface Map<String,Value>public Value compute(String key, BiFunction<? super String,? super Value,? extends Value> remappingFunction)
public Value merge(String key, Value value, BiFunction<? super Value,? super Value,? extends Value> remappingFunction)
public void forEach(BiConsumer<? super String,? super Value> action)
public void replaceAll(BiFunction<? super String,? super Value,? extends Value> function)
replaceAll in interface Map<String,Value>public boolean equals(Object o)
Copyright © 2014. All rights reserved.