Package org.apache.groovy.json.internal
Interface ValueMap<K,V>
- Type Parameters:
K- key typeV- value type
- All Superinterfaces:
Map<K,V>
- All Known Implementing Classes:
LazyValueMap,ValueMapImpl
Map contract used by the lazy JSON object implementations.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MapItemValue miv) Adds a parsed entry without forcing full map hydration.booleanhydrated()Has the map been hydrated.items()Give me the items in the map without hydrating the map.intlen()Return size w/o hydrating the map.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
add
Adds a parsed entry without forcing full map hydration.- Parameters:
miv- entry to append
-
len
int len()Return size w/o hydrating the map. -
hydrated
boolean hydrated()Has the map been hydrated. -
items
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.
-