public class KeyCollectionAsMap<K,E>
extends java.lang.Object
implements java.util.Map<K,E>, java.io.Serializable
Constructor and Description |
---|
KeyCollectionAsMap(KeyCollectionImpl<E> coll,
int keyIndex,
boolean immutable) |
KeyCollectionAsMap(KeyListImpl<E> list,
int keyIndex,
boolean immutable) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<K,E>> |
entrySet()
Note that the returned set is immutable.
|
boolean |
equals(java.lang.Object o) |
E |
get(java.lang.Object key) |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Set<K> |
keySet()
Note that the returned set is immutable.
|
E |
put(K key,
E elem) |
void |
putAll(java.util.Map<? extends K,? extends E> map) |
E |
remove(java.lang.Object key) |
int |
size() |
java.lang.String |
toString() |
java.util.Collection<E> |
values() |
public KeyCollectionAsMap(KeyCollectionImpl<E> coll, int keyIndex, boolean immutable)
public KeyCollectionAsMap(KeyListImpl<E> list, int keyIndex, boolean immutable)
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public java.util.Set<K> keySet()
Note that the returned set is immutable.
public java.util.Set<java.util.Map.Entry<K,E>> entrySet()
Note that the returned set is immutable.