public class PrimitiveAndEnumSupportingValueMap extends Object implements org.apache.sling.api.resource.ValueMap
ValueMap decorator converts primitive types passed to get(String, Class) or
get(String, Object) to their boxed equivalents prior to their retrieval from the
wrapped value map, as the standard value map does not support primitive type retrieval.| Constructor and Description |
|---|
PrimitiveAndEnumSupportingValueMap(org.apache.sling.api.resource.ValueMap valueMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key) |
<T> T |
get(String name,
Class<T> type) |
<T> T |
get(String name,
T defaultValue) |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,?> m) |
Object |
remove(Object key) |
int |
size() |
Collection<Object> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic PrimitiveAndEnumSupportingValueMap(org.apache.sling.api.resource.ValueMap valueMap)
valueMap - must not be null.public <T> T get(@Nonnull String name, @Nonnull Class<T> type)
get in interface org.apache.sling.api.resource.ValueMappublic <T> T get(@Nonnull String name, T defaultValue)
get in interface org.apache.sling.api.resource.ValueMappublic boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>@Nonnull public Collection<Object> values()
Copyright © 2024. All rights reserved.