K - Map key typeV - Map value typepublic class DelegatingMap<K,V,T extends Map<K,V>> extends Object implements Map<K,V>
Map implementation that delegates all calls to an internal Map instance.| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingMap(T delegate)
Initializes the instance with specified non-null backing delegate Map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object id) |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
protected void |
setDelegate(T delegate) |
int |
size() |
Collection<V> |
values() |
protected DelegatingMap(T delegate)
delegate - non-null delegate map to use for all map method implementationsIllegalArgumentException - if delegate is null.protected void setDelegate(T delegate)
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.