Class KeyCollectionAsMap<K,E>
java.lang.Object
org.magicwerk.brownies.collections.KeyCollectionAsMap<K,E>
- All Implemented Interfaces:
Serializable,Map<K,E>
Implements a Map based on a key map in a KeyCollection or KeyList.
- Author:
- Thomas Mauch
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionKeyCollectionAsMap(KeyCollectionImpl<E> coll, int keyIndex, boolean immutable) KeyCollectionAsMap(KeyListImpl<E> list, int keyIndex, boolean immutable) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
KeyCollectionAsMap
-
KeyCollectionAsMap
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,E>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,E>
-
get
-
keySet
Note that the returned set is immutable.
-
entrySet
Note that the returned set is immutable.
-
values
-
clear
public void clear() -
put
-
remove
-
putAll
-