Package org.apache.groovy.json.internal
Class ValueMapImpl
- java.lang.Object
-
- java.util.AbstractMap<String,Value>
-
- org.apache.groovy.json.internal.ValueMapImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description ValueMapImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(MapItemValue miv)
Add a MapItemValue to the map.Set<Map.Entry<String,Value>>
entrySet()
If the map has not been built yet, then we just return a fake entry set.Value
get(Object key)
Get the items for the key.boolean
hydrated()
Has the map been hydrated.Map.Entry<String,Value>[]
items()
Give me the items in the map without hydrating the map.int
len()
Return size w/o hydrating the map.Value
put(String key, Value value)
int
size()
Return the size of the map.Collection<Value>
values()
Return a collection of values.-
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
add
public void add(MapItemValue miv)
Add a MapItemValue to the map.
-
len
public int len()
Description copied from interface:ValueMap
Return size w/o hydrating the map.
-
hydrated
public boolean hydrated()
Description copied from interface:ValueMap
Has the map been hydrated.
-
items
public Map.Entry<String,Value>[] items()
Description copied from interface:ValueMap
Give me the items in the map without hydrating the map. Realize that the array is likely larger than the length so array items can be null.
-
entrySet
public Set<Map.Entry<String,Value>> entrySet()
If the map has not been built yet, then we just return a fake entry set.
-
values
public Collection<Value> values()
Return a collection of values.
-
-