Package com.composum.sling.core.util
Class CollectingMap<Key,Value>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<Key,Value>
-
- com.composum.sling.core.util.CollectingMap<Key,Value>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Key,Value>
public class CollectingMap<Key,Value> extends HashMap<Key,Value>
a 'Map' which generates its values dynamically to offer a dynamic value set for the scripts- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CollectingMap.Factory<Key,Value>
-
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>
-
-
Field Summary
Fields Modifier and Type Field Description protected CollectingMap.Factory<Key,Value>
factory
-
Constructor Summary
Constructors Constructor Description CollectingMap(@NotNull CollectingMap.Factory<Key,Value> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Value
get(Object key)
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Field Detail
-
factory
protected final CollectingMap.Factory<Key,Value> factory
-
-
Constructor Detail
-
CollectingMap
public CollectingMap(@NotNull @NotNull CollectingMap.Factory<Key,Value> factory)
-
-