K - キーの型V - 値の型public abstract class MapWrapper<K,V>
extends java.util.AbstractMap<K,V>
Mapを実装するクラスの、ラッパークラスを作成するための抽象クラス。
サブクラスでgetDelegateMap()を実装することで、任意のMapに処理を委譲できる。| コンストラクタと説明 |
|---|
MapWrapper() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
clear()
getDelegateMap()が返すMapオブジェクトに処理を委譲する。 |
boolean |
containsKey(java.lang.Object key)
getDelegateMap()が返すMapオブジェクトに処理を委譲する。 |
boolean |
containsValue(java.lang.Object value)
getDelegateMap()が返すMapオブジェクトに処理を委譲する。 |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet()
getDelegateMap()が返すMapオブジェクトに処理を委譲する。 |
boolean |
equals(java.lang.Object o) |
V |
get(java.lang.Object key)
getDelegateMap()が返すMapオブジェクトに処理を委譲する。 |
abstract java.util.Map<K,V> |
getDelegateMap()
このラッパーが処理を委譲する
Mapオブジェクトを返す。 |
<T> T |
getDelegateMapOfType(java.lang.Class<T> mapType)
このインスタンスが処理を委譲しているMapのうち、
指定した型のものを返す。
|
int |
hashCode() |
boolean |
isEmpty()
getDelegateMap()が返すMapオブジェクトに処理を委譲する。 |
java.util.Set<K> |
keySet()
getDelegateMap()が返すMapオブジェクトに処理を委譲する。 |
V |
put(K key,
V value)
getDelegateMap()が返すMapオブジェクトに処理を委譲する。 |
void |
putAll(java.util.Map<? extends K,? extends V> m)
getDelegateMap()が返すMapオブジェクトに処理を委譲する。 |
V |
remove(java.lang.Object key)
getDelegateMap()が返すMapオブジェクトに処理を委譲する。 |
int |
size()
getDelegateMap()が返すMapオブジェクトに処理を委譲する。 |
java.lang.String |
toString() |
java.util.Collection<V> |
values()
getDelegateMap()が返すMapオブジェクトに処理を委譲する。 |
public abstract java.util.Map<K,V> getDelegateMap()
Mapオブジェクトを返す。public <T> T getDelegateMapOfType(java.lang.Class<T> mapType)
T - 取得したいMapの型mapType - 取得したいMapの型@Published public void clear()
getDelegateMap()が返すMapオブジェクトに処理を委譲する。@Published public boolean containsKey(java.lang.Object key)
getDelegateMap()が返すMapオブジェクトに処理を委譲する。@Published public boolean containsValue(java.lang.Object value)
getDelegateMap()が返すMapオブジェクトに処理を委譲する。@Published public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
getDelegateMap()が返すMapオブジェクトに処理を委譲する。@Published public V get(java.lang.Object key)
getDelegateMap()が返すMapオブジェクトに処理を委譲する。@Published public boolean isEmpty()
getDelegateMap()が返すMapオブジェクトに処理を委譲する。@Published public java.util.Set<K> keySet()
getDelegateMap()が返すMapオブジェクトに処理を委譲する。@Published public V put(K key, V value)
getDelegateMap()が返すMapオブジェクトに処理を委譲する。@Published public void putAll(java.util.Map<? extends K,? extends V> m)
getDelegateMap()が返すMapオブジェクトに処理を委譲する。@Published public V remove(java.lang.Object key)
getDelegateMap()が返すMapオブジェクトに処理を委譲する。@Published public int size()
getDelegateMap()が返すMapオブジェクトに処理を委譲する。@Published public java.util.Collection<V> values()
getDelegateMap()が返すMapオブジェクトに処理を委譲する。public boolean equals(java.lang.Object o)
public int hashCode()