Class ValueMapDecorator
- java.lang.Object
-
- org.apache.sling.fsprovider.internal.mapper.valuemap.ValueMapDecorator
-
public final class ValueMapDecorator extends Object implements org.apache.sling.api.resource.ValueMap
This is copied from org.apache.sling.api.wrappers.ValueMapDectorator to avoid dependency to latest Sling API. This can be removed when Sling API 2.17.0 or higher is referenced.
-
-
Constructor Summary
Constructors Constructor Description ValueMapDecorator(Map<String,Object> base)Creates a new wrapper around a given map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,Object>>entrySet()booleanequals(Object obj)<T> Tget(@NotNull String name, @NotNull Class<T> type)<T> Tget(@NotNull String name, T defaultValue)Objectget(Object key)inthashCode()booleanisEmpty()Set<String>keySet()Objectput(String key, Object value)voidputAll(Map<? extends String,?> t)Objectremove(Object key)intsize()StringtoString()Collection<Object>values()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
get
public <T> T get(@NotNull @NotNull String name, @NotNull @NotNull Class<T> type)- Specified by:
getin interfaceorg.apache.sling.api.resource.ValueMap
-
get
@NotNull public <T> T get(@NotNull @NotNull String name, @NotNull T defaultValue)- Specified by:
getin interfaceorg.apache.sling.api.resource.ValueMap
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<String,Object>
-
hashCode
public int hashCode()
-
-