public class MockValueMap
extends org.apache.sling.api.wrappers.ValueMapDecorator
implements org.apache.sling.api.resource.ModifiableValueMap
Implements the following conversions:
| Constructor and Description |
|---|
MockValueMap(org.apache.sling.api.resource.Resource resource) |
MockValueMap(org.apache.sling.api.resource.Resource resource,
Map<String,Object> map) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
Object |
get(Object key) |
<T> T |
get(String name,
Class<T> type) |
<T> T |
get(String name,
T defaultValue) |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,?> map) |
clear, containsValue, entrySet, isEmpty, keySet, remove, size, toString, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic MockValueMap(org.apache.sling.api.resource.Resource resource)
public <T> T get(String name, Class<T> type)
get in interface org.apache.sling.api.resource.ValueMapValueMap.get(java.lang.String, java.lang.Class)public <T> T get(String name, T defaultValue)
get in interface org.apache.sling.api.resource.ValueMapget in class org.apache.sling.api.wrappers.ValueMapDecoratorValueMap.get(java.lang.String, java.lang.Object)public boolean containsKey(Object key)
containsKey in interface Map<String,Object>containsKey in class org.apache.sling.api.wrappers.ValueMapDecoratorValueMapDecorator.containsKey(java.lang.Object)Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.