Package com.composum.sling.core
Class ResourceModel.GenericProperty
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- com.composum.sling.core.ResourceModel.GenericMap
-
- com.composum.sling.core.ResourceModel.GenericProperty
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
,org.apache.sling.api.resource.ValueMap
- Enclosing class:
- ResourceModel
public class ResourceModel.GenericProperty extends ResourceModel.GenericMap
- 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>
-
-
Field Summary
-
Fields inherited from class com.composum.sling.core.ResourceModel.GenericMap
UNDEFINED
-
-
Constructor Summary
Constructors Constructor Description GenericProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
getValue(String key, @NotNull Class<T> type)
-
Methods inherited from class com.composum.sling.core.ResourceModel.GenericMap
get, get, get
-
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
-
-
-
-
Method Detail
-
getValue
@Nullable public <T> T getValue(String key, @NotNull @NotNull Class<T> type)
- Specified by:
getValue
in classResourceModel.GenericMap
-
-