Modul speiger.src.collections
Schnittstelle Long2ShortSortedMap
- Alle Superschnittstellen:
Long2ShortFunction,Long2ShortMap,Map<Long,,Short> SortedMap<Long,Short>
- Alle bekannten Unterschnittstellen:
Long2ShortNavigableMap
- Alle bekannten Implementierungsklassen:
Long2ShortAVLTreeMap,Long2ShortMaps.SynchronizedNavigableMap,Long2ShortMaps.SynchronizedSortedMap,Long2ShortMaps.UnmodifyableNavigableMap,Long2ShortMaps.UnmodifyableSortedMap,Long2ShortRBTreeMap
A Type Specific
SortedMap interface to reduce boxing/unboxing, with a couple extra methods that allow greater control over maps.- Note:
- Long2ShortOrderedMap is only extended until 0.6.0 for Compat reasons. The supported classes already implement Long2ShortOrderedMap directly and will remove Long2ShortSortedMap implementations in favor of Long2ShortOrderedMap 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.longs.maps.interfaces.Long2ShortMap
Long2ShortMap.BuilderCache, Long2ShortMap.Entry, Long2ShortMap.FastEntrySet, Long2ShortMap.MapBuilder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcopy()A Function that does a shallow clone of the Map itself.default LongfirstKey()Veraltet.longA method to get the first Key of a Map.shortA method to get the first Value of a Map.headMap(long toKey) A Type Specific HeadMap method to reduce boxing/unboxingdefault Long2ShortSortedMapVeraltet.keySet()default LonglastKey()Veraltet.longA method to get the last Key of a Map.shortA method to get the last Value of a Map.longA method to get and remove the first Key of a Map.longA method to get and remove the last Key of a Map.subMap(long fromKey, long toKey) A Type Specific SubMap method to reduce boxing/unboxingdefault Long2ShortSortedMapVeraltet.default Long2ShortSortedMapCreates a Wrapped SortedMap that is Synchronizeddefault Long2ShortSortedMapsynchronize(Object mutex) Creates a Wrapped SortedMap that is SynchronizedtailMap(long fromKey) A Type Specific TailMap method to reduce boxing/unboxingdefault Long2ShortSortedMapVeraltet.default Long2ShortSortedMapCreates a Wrapped SortedMap that is unmodifiablevalues()Von Schnittstelle geerbte Methoden speiger.src.collections.longs.maps.interfaces.Long2ShortMap
addTo, addToAll, applyAsShort, compute, computeIfAbsent, computeIfPresent, computeShort, computeShortIfAbsent, computeShortIfAbsentNonDefault, computeShortIfPresent, computeShortIfPresentNonDefault, computeShortNonDefault, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, long2ShortEntrySet, merge, mergeAllShort, mergeShort, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceShorts, replaceShorts, setDefaultReturnValue, subFrom, supplyShortIfAbsent, supplyShortIfAbsentNonDefault
-
Methodendetails
-
comparator
LongComparator comparator()- Angegeben von:
comparatorin SchnittstelleSortedMap<Long,Short>
-
copy
Long2ShortSortedMap copy()Beschreibung aus Schnittstelle kopiert:Long2ShortMapA 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 SchnittstelleLong2ShortMap- Gibt zurück:
- a Shallow Copy of the Map
-
keySet
LongSortedSet keySet() -
values
ShortCollection values() -
synchronize
Creates a Wrapped SortedMap that is Synchronized- Angegeben von:
synchronizein SchnittstelleLong2ShortMap- Gibt zurück:
- a new SortedMap that is synchronized
- Siehe auch:
-
synchronize
Creates a Wrapped SortedMap that is Synchronized- Angegeben von:
synchronizein SchnittstelleLong2ShortMap- 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 SchnittstelleLong2ShortMap- 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.
-
firstLongKey
long firstLongKey()A method to get the first Key of a Map.- Gibt zurück:
- the first key in the map
-
pollFirstLongKey
long pollFirstLongKey()A method to get and remove the first Key of a Map.- Gibt zurück:
- the first key in the map
-
lastLongKey
long lastLongKey()A method to get the last Key of a Map.- Gibt zurück:
- the last key in the map
-
pollLastLongKey
long pollLastLongKey()A method to get and remove the last Key of a Map.- Gibt zurück:
- the last key in the map
-
firstShortValue
short firstShortValue()A method to get the first Value of a Map.- Gibt zurück:
- the first key in the map
-
lastShortValue
short lastShortValue()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.
-