java.lang.Object
com.github.hypfvieh.collections.BidiMap<K,V>
- Alle implementierten Schnittstellen:
Map<K,V>
A bidirectional map.
If created from an existing map, the original map is not modified.
Instead a new Map objects of the same type
are created for a copy of the original map and an inverted map.
Should this fail, the type defaults to
LinkedHashMap.
Combinations of key-value must be unique in order to create and
maintain the corresponding inverse map. In addition, null is not accepted
as a valid value, as it is not permitted as a map key.
In these cases IllegalArgumentException is thrown.
The map requires external synchronization.-
Verschachtelte Klassen - Übersicht
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclear()booleancontainsKey(Object _key) booleancontainsValue(Object _val) entrySet()booleanisEmpty()keySet()voidremoveValue(V _val) Removes the mapping for a value from this map if it is present.intsize()final StringtoString()values()Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Konstruktordetails
-
BidiMap
public BidiMap() -
BidiMap
-
-
Methodendetails
-
get
-
getKey
-
containsKey
- Angegeben von:
containsKeyin SchnittstelleMap<K,V>
-
containsValue
- Angegeben von:
containsValuein SchnittstelleMap<K,V>
-
size
public int size() -
isEmpty
public boolean isEmpty() -
keySet
-
values
-
entrySet
-
remove
-
removeValue
Removes the mapping for a value from this map if it is present.- Parameter:
_val- value whose mapping is to be removed from the map- Gibt zurück:
- the previous key associated with value.
-
put
-
putAll
-
clear
public void clear() -
toString
-