Modul speiger.src.collections
Schnittstelle Short2LongSortedMap
- Alle Superschnittstellen:
Map<Short,,Long> Short2LongFunction,Short2LongMap,SortedMap<Short,Long>
- Alle bekannten Unterschnittstellen:
Short2LongNavigableMap
- Alle bekannten Implementierungsklassen:
Short2LongAVLTreeMap,Short2LongMaps.SynchronizedNavigableMap,Short2LongMaps.SynchronizedSortedMap,Short2LongMaps.UnmodifyableNavigableMap,Short2LongMaps.UnmodifyableSortedMap,Short2LongRBTreeMap
A Type Specific
SortedMap interface to reduce boxing/unboxing, with a couple extra methods that allow greater control over maps.- Note:
- Short2LongOrderedMap is only extended until 0.6.0 for Compat reasons. The supported classes already implement Short2LongOrderedMap directly and will remove Short2LongSortedMap implementations in favor of Short2LongOrderedMap instead
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic interfaceFast Sorted Entry Set that allows for a faster Entry Iterator by recycling the Entry Object and just exchanging 1 internal valueVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.shorts.maps.interfaces.Short2LongMap
Short2LongMap.BuilderCache, Short2LongMap.Entry, Short2LongMap.FastEntrySet, Short2LongMap.MapBuilder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcopy()A Function that does a shallow clone of the Map itself.default ShortfirstKey()Veraltet.longA method to get the first Value of a Map.shortA method to get the first Key of a Map.headMap(short toKey) A Type Specific HeadMap method to reduce boxing/unboxingdefault Short2LongSortedMapVeraltet.keySet()default ShortlastKey()Veraltet.longA method to get the last Value of a Map.shortA method to get the last Key of a Map.shortA method to get and remove the first Key of a Map.shortA method to get and remove the last Key of a Map.subMap(short fromKey, short toKey) A Type Specific SubMap method to reduce boxing/unboxingdefault Short2LongSortedMapVeraltet.default Short2LongSortedMapCreates a Wrapped SortedMap that is Synchronizeddefault Short2LongSortedMapsynchronize(Object mutex) Creates a Wrapped SortedMap that is SynchronizedtailMap(short fromKey) A Type Specific TailMap method to reduce boxing/unboxingdefault Short2LongSortedMapVeraltet.default Short2LongSortedMapCreates a Wrapped SortedMap that is unmodifiablevalues()Von Schnittstelle geerbte Methoden speiger.src.collections.shorts.maps.interfaces.Short2LongMap
addTo, addToAll, applyAsLong, compute, computeIfAbsent, computeIfPresent, computeLong, computeLongIfAbsent, computeLongIfAbsentNonDefault, computeLongIfPresent, computeLongIfPresentNonDefault, computeLongNonDefault, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllLong, mergeLong, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceLongs, replaceLongs, setDefaultReturnValue, short2LongEntrySet, subFrom, supplyLongIfAbsent, supplyLongIfAbsentNonDefault
-
Methodendetails
-
comparator
ShortComparator comparator()- Angegeben von:
comparatorin SchnittstelleSortedMap<Short,Long>
-
copy
Short2LongSortedMap copy()Beschreibung aus Schnittstelle kopiert:Short2LongMapA Function that does a shallow clone of the Map itself. This function is more optimized then a copy constructor since the Map does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk- Angegeben von:
copyin SchnittstelleShort2LongMap- Gibt zurück:
- a Shallow Copy of the Map
-
keySet
ShortSortedSet keySet() -
values
LongCollection values() -
synchronize
Creates a Wrapped SortedMap that is Synchronized- Angegeben von:
synchronizein SchnittstelleShort2LongMap- Gibt zurück:
- a new SortedMap that is synchronized
- Siehe auch:
-
synchronize
Creates a Wrapped SortedMap that is Synchronized- Angegeben von:
synchronizein SchnittstelleShort2LongMap- Parameter:
mutex- is the controller of the synchronization block- Gibt zurück:
- a new SortedMap Wrapper that is synchronized
- Siehe auch:
-
unmodifiable
Creates a Wrapped SortedMap that is unmodifiable- Angegeben von:
unmodifiablein SchnittstelleShort2LongMap- Gibt zurück:
- a new SortedMap Wrapper that is unmodifiable
- Siehe auch:
-
subMap
A Type Specific SubMap method to reduce boxing/unboxing- Parameter:
fromKey- where the submap should starttoKey- where the subMap should end- Gibt zurück:
- a SubMap that is within the range of the desired range
- Note:
- Some implementations may not support this method., Some implementations may not keep the desired range when the original is changed.
-
headMap
A Type Specific HeadMap method to reduce boxing/unboxing- Parameter:
toKey- where the headMap should end- Gibt zurück:
- a HeadMap that is within the range of the desired range
- Note:
- Some implementations may not support this method., Some implementations may not keep the desired range when the original is changed.
-
tailMap
A Type Specific TailMap method to reduce boxing/unboxing- Parameter:
fromKey- where the TailMap should start- Gibt zurück:
- a TailMap that is within the range of the desired range
- Note:
- Some implementations may not support this method., Some implementations may not keep the desired range when the original is changed.
-
firstShortKey
short firstShortKey()A method to get the first Key of a Map.- Gibt zurück:
- the first key in the map
-
pollFirstShortKey
short pollFirstShortKey()A method to get and remove the first Key of a Map.- Gibt zurück:
- the first key in the map
-
lastShortKey
short lastShortKey()A method to get the last Key of a Map.- Gibt zurück:
- the last key in the map
-
pollLastShortKey
short pollLastShortKey()A method to get and remove the last Key of a Map.- Gibt zurück:
- the last key in the map
-
firstLongValue
long firstLongValue()A method to get the first Value of a Map.- Gibt zurück:
- the first key in the map
-
lastLongValue
long lastLongValue()A method to get the last Value of a Map.- Gibt zurück:
- the last key in the map
-
firstKey
Veraltet. -
lastKey
Veraltet. -
subMap
Veraltet. -
headMap
Veraltet. -
tailMap
Veraltet.
-