public abstract class ViewMap<ElementType,ViewType> extends HashMap<String,ViewType>
A map to some underlying object. Upon getting an object via key, the object is wrapped by a view (which typically limits access to the object returned). The wrapping is done lazily, i.e. upon access.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ViewMap(Map<String,ElementType> sourceMap,
Map<String,ElementType> defaultMap) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Object |
clone() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,ViewType>> |
entrySet() |
ViewType |
get(Object key) |
boolean |
isEmpty() |
Set<String> |
keySet() |
ViewType |
put(String key,
ViewType value) |
void |
putAll(Map<? extends String,? extends ViewType> m) |
ViewType |
remove(Object key) |
int |
size() |
Collection<ViewType> |
values() |
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
equals, hashCode, toString
public ViewMap(Map<String,ElementType> sourceMap, Map<String,ElementType> defaultMap)
public int size()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey
in interface Map<String,ViewType>
containsKey
in class HashMap<String,ViewType>
public void clear()
public boolean containsValue(Object value)
containsValue
in interface Map<String,ViewType>
containsValue
in class HashMap<String,ViewType>
public Collection<ViewType> values()
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.