public class MapValueImpl extends Object implements ValueMap
ValueMap.Builder| Constructor and Description |
|---|
MapValueImpl() |
MapValueImpl(HashMap<String,Value> delegate) |
| Modifier and Type | Method and Description |
|---|---|
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) |
Boolean |
getBoolean()
Read the field.
|
Byte |
getByte()
Read the field.
|
Double |
getDouble()
Read the field.
|
Float |
getFloat()
Read the field.
|
Integer |
getInt()
Read the field.
|
ValueList |
getList() |
Long |
getLong()
Read the field.
|
MapValueImpl |
getMap() |
Object |
getObject()
Read the field value as raw java object.
|
Object |
getObject(String fieldName)
Read the field having the specified name.
|
Value |
getOrDefault(Object key,
Value defaultValue) |
Short |
getShort()
Read the field.
|
String |
getString()
Read the field.
|
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isNull() |
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() |
String |
toString() |
Collection<Value> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewBuilder, newInstancenullValue, of, of, of, of, of, of, of, of, of, of, of, of, of, ofgetAs, getBooleanAs, getByteAs, getDoubleAs, getFloatAs, getIntAs, getLongAs, getShortAs, 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)
NamedFieldAccessorsgetObject in interface NamedFieldAccessorsfieldName - The field name, non-null.public Boolean getBoolean()
FieldAccessorsgetBoolean in interface FieldAccessorspublic Byte getByte()
FieldAccessorsgetByte in interface FieldAccessorspublic Short getShort()
FieldAccessorsgetShort in interface FieldAccessorspublic Integer getInt()
FieldAccessorsgetInt in interface FieldAccessorspublic Long getLong()
FieldAccessorsgetLong in interface FieldAccessorspublic Float getFloat()
FieldAccessorsgetFloat in interface FieldAccessorspublic Double getDouble()
FieldAccessorsgetDouble in interface FieldAccessorspublic String getString()
FieldAccessorsgetString in interface FieldAccessorspublic MapValueImpl getMap()
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)
public int hashCode()
Copyright © 2015. All rights reserved.