K
- キーの型V
- 値の型public abstract class MapWrapper<K,V> extends AbstractMap<K,V>
Map
を実装するクラスの、ラッパークラスを作成するための抽象クラス。
サブクラスで#getDelegateMap()
を実装することで、任意のMapに処理を委譲できる。修飾子とタイプ | メソッドと説明 |
---|---|
void |
clear()
#getDelegateMap() が返すMap オブジェクトに処理を委譲する。 |
boolean |
containsKey(Object key)
#getDelegateMap() が返すMap オブジェクトに処理を委譲する。 |
boolean |
containsValue(Object value)
#getDelegateMap() が返すMap オブジェクトに処理を委譲する。 |
Set<Map.Entry<K,V>> |
entrySet()
#getDelegateMap() が返すMap オブジェクトに処理を委譲する。 |
V |
get(Object key)
#getDelegateMap() が返すMap オブジェクトに処理を委譲する。 |
boolean |
isEmpty()
#getDelegateMap() が返すMap オブジェクトに処理を委譲する。 |
Set<K> |
keySet()
#getDelegateMap() が返すMap オブジェクトに処理を委譲する。 |
V |
put(K key,
V value)
#getDelegateMap() が返すMap オブジェクトに処理を委譲する。 |
void |
putAll(Map<? extends K,? extends V> m)
#getDelegateMap() が返すMap オブジェクトに処理を委譲する。 |
V |
remove(Object key)
#getDelegateMap() が返すMap オブジェクトに処理を委譲する。 |
int |
size()
#getDelegateMap() が返すMap オブジェクトに処理を委譲する。 |
Collection<V> |
values()
#getDelegateMap() が返すMap オブジェクトに処理を委譲する。 |
@Published public void clear()
#getDelegateMap()
が返すMap
オブジェクトに処理を委譲する。clear
クラス内 AbstractMap<K,V>
@Published public boolean containsKey(Object key)
#getDelegateMap()
が返すMap
オブジェクトに処理を委譲する。containsKey
クラス内 AbstractMap<K,V>
@Published public boolean containsValue(Object value)
#getDelegateMap()
が返すMap
オブジェクトに処理を委譲する。containsValue
クラス内 AbstractMap<K,V>
@Published public Set<Map.Entry<K,V>> entrySet()
#getDelegateMap()
が返すMap
オブジェクトに処理を委譲する。entrySet
クラス内 AbstractMap<K,V>
@Published public V get(Object key)
#getDelegateMap()
が返すMap
オブジェクトに処理を委譲する。get
クラス内 AbstractMap<K,V>
@Published public boolean isEmpty()
#getDelegateMap()
が返すMap
オブジェクトに処理を委譲する。isEmpty
クラス内 AbstractMap<K,V>
@Published public Set<K> keySet()
#getDelegateMap()
が返すMap
オブジェクトに処理を委譲する。keySet
クラス内 AbstractMap<K,V>
@Published public V put(K key, V value)
#getDelegateMap()
が返すMap
オブジェクトに処理を委譲する。put
クラス内 AbstractMap<K,V>
@Published public void putAll(Map<? extends K,? extends V> m)
#getDelegateMap()
が返すMap
オブジェクトに処理を委譲する。putAll
クラス内 AbstractMap<K,V>
@Published public V remove(Object key)
#getDelegateMap()
が返すMap
オブジェクトに処理を委譲する。remove
クラス内 AbstractMap<K,V>
@Published public int size()
#getDelegateMap()
が返すMap
オブジェクトに処理を委譲する。size
クラス内 AbstractMap<K,V>
@Published public Collection<V> values()
#getDelegateMap()
が返すMap
オブジェクトに処理を委譲する。values
クラス内 AbstractMap<K,V>