public abstract class ForwardingMap<K,V>
extends java.lang.Object
implements java.util.Map<K,V>
Constructor and Description |
---|
ForwardingMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
protected java.util.Set<java.util.Map.Entry<K,V>> |
createEntrySet()
Generates a
Set for use by entrySet() . |
protected java.util.Set<K> |
createKeySet()
Generates a
Set for use by keySet() . |
protected java.util.Collection<V> |
createValues()
Generates a
Collection for use by values() . |
protected abstract java.util.Map<K,V> |
delegate() |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
boolean |
equals(java.lang.Object object) |
V |
get(java.lang.Object key) |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> map) |
V |
remove(java.lang.Object object) |
int |
size() |
java.lang.String |
toString() |
java.util.Collection<V> |
values() |
public V remove(java.lang.Object object)
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
protected java.util.Set<K> createKeySet()
Set
for use by keySet()
.
ForwardingMap's implementation of keySet() calls this method to generate a collection of values, and then reuses that Set for subsequent invocations. By default, this Set is the result of invoking keySet() on the delegate. Override this method if you want to provide another implementation.
protected java.util.Collection<V> createValues()
Collection
for use by values()
.
ForwardingMap's implementation of values()
calls this method to
generate a collection of values, and then reuses that collection
for subsequent invocations. By default, this collection is the
result of invoking values() on the delegate. Override this method if you
want to provide another implementation.
protected java.util.Set<java.util.Map.Entry<K,V>> createEntrySet()
Set
for use by entrySet()
.
ForwardingMap's implementation of entrySet() calls this method to generate a set of entries, and then reuses that set for subsequent invocations. By default, this set is the result of invoking entrySet() on the delegate. Override this method if you want to provide another implementation.
public boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.