Class DefaultStringObjectMap<T extends StringObjectMap<T>>
java.lang.Object
org.springframework.data.elasticsearch.support.DefaultStringObjectMap<T>
- All Implemented Interfaces:
Map<String,
,Object> StringObjectMap<T>
- Direct Known Subclasses:
Settings
public class DefaultStringObjectMap<T extends StringObjectMap<T>>
extends Object
implements StringObjectMap<T>
- Author:
- Peter-Josef Meisch
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
void
forEach
(BiConsumer<? super String, ? super Object> action) initializes this object from the given JSON String.getOrDefault
(Object key, Object defaultValue) int
hashCode()
boolean
isEmpty()
keySet()
void
int
size()
toJson()
Render thisDocument
to JSON.toString()
values()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, merge, putIfAbsent, remove, replace, replace, replaceAll
Methods inherited from interface org.springframework.data.elasticsearch.support.StringObjectMap
append, get, getBoolean, getBooleanOrDefault, getBooleanOrDefault, getInt, getIntOrDefault, getIntOrDefault, getLong, getLongOrDefault, getLongOrDefault, getString, getStringOrDefault, getStringOrDefault
-
Constructor Details
-
DefaultStringObjectMap
public DefaultStringObjectMap() -
DefaultStringObjectMap
-
-
Method Details
-
toJson
Description copied from interface:StringObjectMap
Render thisDocument
to JSON. Auxiliary values such as Id and version are not considered within the JSON representation.- Specified by:
toJson
in interfaceStringObjectMap<T extends StringObjectMap<T>>
- Returns:
- a JSON representation of this document.
-
fromJson
Description copied from interface:StringObjectMap
initializes this object from the given JSON String.- Specified by:
fromJson
in interfaceStringObjectMap<T extends StringObjectMap<T>>
- Parameters:
json
- must not be null
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<String,
Object>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
Object>
-
get
-
getOrDefault
- Specified by:
getOrDefault
in interfaceMap<String,
Object>
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode() -
forEach
-
toString
-