public class DefaultStringObjectMap<T extends StringObjectMap<T>> extends Object implements StringObjectMap<T>
| Constructor and Description |
|---|
DefaultStringObjectMap() |
DefaultStringObjectMap(Map<String,? extends Object> map) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object o) |
void |
forEach(BiConsumer<? super String,? super Object> action) |
T |
fromJson(String json)
initializes this object from the given JSON String.
|
Object |
get(Object key) |
Object |
getOrDefault(Object key,
Object defaultValue) |
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
path(String path)
Gets the object at the given key path (dot separated) or null if no object exists with this path.
|
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,?> m) |
Object |
remove(Object key) |
int |
size() |
String |
toJson()
Render this
Document to JSON. |
String |
toString() |
Collection<Object> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitappend, get, getBoolean, getBooleanOrDefault, getBooleanOrDefault, getInt, getIntOrDefault, getIntOrDefault, getLong, getLongOrDefault, getLongOrDefault, getString, getStringOrDefault, getStringOrDefaultcompute, computeIfAbsent, computeIfPresent, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String toJson()
StringObjectMapDocument to JSON. Auxiliary values such as Id and version are not considered within the JSON
representation.toJson in interface StringObjectMap<T extends StringObjectMap<T>>public T fromJson(String json)
StringObjectMapfromJson in interface StringObjectMap<T extends StringObjectMap<T>>json - must not be nullpublic boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>public Object getOrDefault(Object key, Object defaultValue)
getOrDefault in interface Map<String,Object>public boolean equals(Object o)
public int hashCode()
public void forEach(BiConsumer<? super String,? super Object> action)
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.