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 void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<String,Object>>
entrySet()
boolean
equals(Object obj)
<T> T
get(@NotNull String name, @NotNull Class<T> type)
<T> T
get(@NotNull String name, T defaultValue)
Object
get(Object key)
int
hashCode()
boolean
isEmpty()
Set<String>
keySet()
Object
put(String key, Object value)
void
putAll(Map<? extends String,?> t)
Object
remove(Object key)
int
size()
String
toString()
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:
get
in interfaceorg.apache.sling.api.resource.ValueMap
-
get
@NotNull public <T> T get(@NotNull @NotNull String name, @NotNull T defaultValue)
- Specified by:
get
in interfaceorg.apache.sling.api.resource.ValueMap
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,Object>
-
hashCode
public int hashCode()
-
-