public class MockValueMap extends Object 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 |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object obj) |
Object |
get(Object key) |
<T> T |
get(String name,
Class<T> type) |
<T> T |
get(String name,
T defaultValue) |
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,?> map) |
Object |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<Object> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public 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.ValueMap
ValueMap.get(java.lang.String, java.lang.Class)
public <T> T get(String name, T defaultValue)
get
in interface org.apache.sling.api.resource.ValueMap
ValueMap.get(java.lang.String, java.lang.Object)
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
ValueMapDecorator.containsKey(java.lang.Object)
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
public int hashCode()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.