Package com.composum.sling.core
Class ResourceModel.GenericMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- com.composum.sling.core.ResourceModel.GenericMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
,org.apache.sling.api.resource.ValueMap
- Direct Known Subclasses:
ResourceModel.GenericProperty
- Enclosing class:
- ResourceModel
public abstract class ResourceModel.GenericMap extends HashMap<String,Object> implements org.apache.sling.api.resource.ValueMap
- See Also:
- Serialized Form
-
-
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 GenericMap()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description @Nullable Object
get(@NotNull Object key)
<T> T
get(@NotNull String name, @NotNull Class<T> type)
<Type> Type
get(@NotNull String name, Type defaultValue)
protected abstract <T> T
getValue(String key, @NotNull Class<T> type)
-
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
-
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, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Field Detail
-
UNDEFINED
public static final String UNDEFINED
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public <T> T get(@NotNull @NotNull String name, @NotNull @NotNull Class<T> type)
- Specified by:
get
in interfaceorg.apache.sling.api.resource.ValueMap
-
get
@NotNull public <Type> Type get(@NotNull @NotNull String name, @NotNull Type defaultValue)
- Specified by:
get
in interfaceorg.apache.sling.api.resource.ValueMap
-
-