Package org.apache.groovy.json.internal
Class ValueMapImpl
- java.lang.Object
- 
- java.util.AbstractMap<java.lang.String,Value>
- 
- org.apache.groovy.json.internal.ValueMapImpl
 
 
- 
- All Implemented Interfaces:
- java.util.Map<java.lang.String,Value>,- ValueMap<java.lang.String,Value>
 
 public class ValueMapImpl extends java.util.AbstractMap<java.lang.String,Value> implements ValueMap<java.lang.String,Value> This map is for object serialization mainly. The idea is the final conversion of the Value objects are delayed until the last possible moment, i.e., just before injected into a bean.
- 
- 
Constructor SummaryConstructors Constructor Description ValueMapImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(MapItemValue miv)Add a MapItemValue to the map.java.util.Set<java.util.Map.Entry<java.lang.String,Value>>entrySet()If the map has not been built yet, then we just return a fake entry set.Valueget(java.lang.Object key)Get the items for the key.booleanhydrated()Has the map been hydrated.java.util.Map.Entry<java.lang.String,Value>[]items()Give me the items in the map without hydrating the map.intlen()Return size w/o hydrating the map.Valueput(java.lang.String key, Value value)intsize()Return the size of the map.java.util.Collection<Value>values()Return a collection of values.- 
Methods inherited from class java.util.AbstractMapclear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, toString
 
- 
 
- 
- 
- 
Method Detail- 
addpublic void add(MapItemValue miv) Add a MapItemValue to the map.
 - 
lenpublic int len() Description copied from interface:ValueMapReturn size w/o hydrating the map.
 - 
hydratedpublic boolean hydrated() Description copied from interface:ValueMapHas the map been hydrated.
 - 
itemspublic java.util.Map.Entry<java.lang.String,Value>[] items() Description copied from interface:ValueMapGive 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.
 - 
getpublic Value get(java.lang.Object key) Get the items for the key.
 - 
entrySetpublic java.util.Set<java.util.Map.Entry<java.lang.String,Value>> entrySet() If the map has not been built yet, then we just return a fake entry set.
 - 
valuespublic java.util.Collection<Value> values() Return a collection of values.
 
- 
 
-