Modul speiger.src.collections
Klasse Long2DoubleMaps.UnmodifyableOrderedMap
java.lang.Object
java.util.AbstractMap<Long,Double>
speiger.src.collections.longs.maps.abstracts.AbstractLong2DoubleMap
speiger.src.collections.longs.utils.maps.Long2DoubleMaps.UnmodifyableMap
speiger.src.collections.longs.utils.maps.Long2DoubleMaps.UnmodifyableOrderedMap
- Alle implementierten Schnittstellen:
LongToDoubleFunction,Map<Long,,Double> Long2DoubleFunction,Long2DoubleMap,Long2DoubleOrderedMap
- Umschließende Klasse:
Long2DoubleMaps
public static class Long2DoubleMaps.UnmodifyableOrderedMap
extends Long2DoubleMaps.UnmodifyableMap
implements Long2DoubleOrderedMap
The Unmodifyable Ordered Map implementation that is sued for the unmodifyableMap function
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.longs.maps.abstracts.AbstractLong2DoubleMap
AbstractLong2DoubleMap.BasicEntryVon Klasse geerbte verschachtelte Klassen/Schnittstellen java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.longs.maps.interfaces.Long2DoubleMap
Long2DoubleMap.BuilderCache, Long2DoubleMap.Entry, Long2DoubleMap.FastEntrySet, Long2DoubleMap.MapBuilderVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.longs.maps.interfaces.Long2DoubleOrderedMap
Long2DoubleOrderedMap.FastOrderedSet -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcopy()A Function that does a shallow clone of the Map itself.doubleA method to get the first Value of a Map.longA method to get the first Key of a Map.doublegetAndMoveToFirst(long key) A Specific get method that allows to move teh given key/value int the first index.doublegetAndMoveToLast(long key) A Specific get method that allows to move teh given key/value int the last index.keySet()doubleA method to get the last Value of a Map.longA method to get the last Key of a Map.Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.booleanmoveToFirst(long key) A specific move method to move a given key/value to the first index.booleanmoveToLast(long key) A specific move method to move a given key/value to the last index.longA method to get and remove the first Key of a Map.longA method to get and remove the last Key of a Map.doubleputAndMoveToFirst(long key, double value) A customized put method that allows you to insert into the first index.doubleputAndMoveToLast(long key, double value) A customized put method that allows you to insert into the last index.Von Klasse geerbte Methoden speiger.src.collections.longs.utils.maps.Long2DoubleMaps.UnmodifyableMap
addTo, clear, computeDouble, computeDoubleIfAbsent, computeDoubleIfAbsentNonDefault, computeDoubleIfPresent, computeDoubleIfPresentNonDefault, computeDoubleNonDefault, get, getOrDefault, mergeAllDouble, mergeDouble, put, putIfAbsent, remove, remove, removeOrDefault, replaceDoubles, replaceDoubles, subFrom, supplyDoubleIfAbsent, supplyDoubleIfAbsentNonDefault, valuesVon Klasse geerbte Methoden speiger.src.collections.longs.maps.abstracts.AbstractLong2DoubleMap
addToAll, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replace, replace, setDefaultReturnValueVon Klasse geerbte Methoden java.util.AbstractMap
containsKey, containsValue, isEmpty, size, toStringVon Schnittstelle geerbte Methoden speiger.src.collections.longs.maps.interfaces.Long2DoubleMap
addTo, addToAll, applyAsDouble, compute, computeDouble, computeDoubleIfAbsent, computeDoubleIfAbsentNonDefault, computeDoubleIfPresent, computeDoubleIfPresentNonDefault, computeDoubleNonDefault, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllDouble, mergeDouble, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceDoubles, replaceDoubles, setDefaultReturnValue, subFrom, supplyDoubleIfAbsent, supplyDoubleIfAbsentNonDefault, valuesVon Schnittstelle geerbte Methoden speiger.src.collections.longs.maps.interfaces.Long2DoubleOrderedMap
synchronize, synchronize, unmodifiable
-
Methodendetails
-
putAndMoveToFirst
public double putAndMoveToFirst(long key, double value) Beschreibung aus Schnittstelle kopiert:Long2DoubleOrderedMapA customized put method that allows you to insert into the first index.- Angegeben von:
putAndMoveToFirstin SchnittstelleLong2DoubleOrderedMap- Parameter:
key- the key that should be insertedvalue- the value that should be inserted- Gibt zurück:
- the previous present or default return value
- Siehe auch:
-
putAndMoveToLast
public double putAndMoveToLast(long key, double value) Beschreibung aus Schnittstelle kopiert:Long2DoubleOrderedMapA customized put method that allows you to insert into the last index. (This may be nessesary depending on the implementation)- Angegeben von:
putAndMoveToLastin SchnittstelleLong2DoubleOrderedMap- Parameter:
key- the key that should be insertedvalue- the value that should be inserted- Gibt zurück:
- the previous present or default return value
- Siehe auch:
-
moveToFirst
public boolean moveToFirst(long key) Beschreibung aus Schnittstelle kopiert:Long2DoubleOrderedMapA specific move method to move a given key/value to the first index.- Angegeben von:
moveToFirstin SchnittstelleLong2DoubleOrderedMap- Parameter:
key- that should be moved to the first index- Gibt zurück:
- true if the value was moved.
-
moveToLast
public boolean moveToLast(long key) Beschreibung aus Schnittstelle kopiert:Long2DoubleOrderedMapA specific move method to move a given key/value to the last index.- Angegeben von:
moveToLastin SchnittstelleLong2DoubleOrderedMap- Parameter:
key- that should be moved to the first last- Gibt zurück:
- true if the value was moved.
-
getAndMoveToFirst
public double getAndMoveToFirst(long key) Beschreibung aus Schnittstelle kopiert:Long2DoubleOrderedMapA Specific get method that allows to move teh given key/value int the first index.- Angegeben von:
getAndMoveToFirstin SchnittstelleLong2DoubleOrderedMap- Parameter:
key- that is searched for- Gibt zurück:
- the given value for the requested key or default return value
-
getAndMoveToLast
public double getAndMoveToLast(long key) Beschreibung aus Schnittstelle kopiert:Long2DoubleOrderedMapA Specific get method that allows to move teh given key/value int the last index.- Angegeben von:
getAndMoveToLastin SchnittstelleLong2DoubleOrderedMap- Parameter:
key- that is searched for- Gibt zurück:
- the given value for the requested key or default return value
-
firstLongKey
public long firstLongKey()Beschreibung aus Schnittstelle kopiert:Long2DoubleOrderedMapA method to get the first Key of a Map.- Angegeben von:
firstLongKeyin SchnittstelleLong2DoubleOrderedMap- Gibt zurück:
- the first key in the map
-
pollFirstLongKey
public long pollFirstLongKey()Beschreibung aus Schnittstelle kopiert:Long2DoubleOrderedMapA method to get and remove the first Key of a Map.- Angegeben von:
pollFirstLongKeyin SchnittstelleLong2DoubleOrderedMap- Gibt zurück:
- the first key in the map
-
lastLongKey
public long lastLongKey()Beschreibung aus Schnittstelle kopiert:Long2DoubleOrderedMapA method to get the last Key of a Map.- Angegeben von:
lastLongKeyin SchnittstelleLong2DoubleOrderedMap- Gibt zurück:
- the last key in the map
-
pollLastLongKey
public long pollLastLongKey()Beschreibung aus Schnittstelle kopiert:Long2DoubleOrderedMapA method to get and remove the last Key of a Map.- Angegeben von:
pollLastLongKeyin SchnittstelleLong2DoubleOrderedMap- Gibt zurück:
- the last key in the map
-
firstDoubleValue
public double firstDoubleValue()Beschreibung aus Schnittstelle kopiert:Long2DoubleOrderedMapA method to get the first Value of a Map.- Angegeben von:
firstDoubleValuein SchnittstelleLong2DoubleOrderedMap- Gibt zurück:
- the first key in the map
-
lastDoubleValue
public double lastDoubleValue()Beschreibung aus Schnittstelle kopiert:Long2DoubleOrderedMapA method to get the last Value of a Map.- Angegeben von:
lastDoubleValuein SchnittstelleLong2DoubleOrderedMap- Gibt zurück:
- the last key in the map
-
copy
Beschreibung aus Schnittstelle kopiert:Long2DoubleMapA 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 SchnittstelleLong2DoubleMap- Angegeben von:
copyin SchnittstelleLong2DoubleOrderedMap- Setzt außer Kraft:
copyin KlasseLong2DoubleMaps.UnmodifyableMap- Gibt zurück:
- a Shallow Copy of the Map
-
keySet
- Angegeben von:
keySetin SchnittstelleLong2DoubleMap- Angegeben von:
keySetin SchnittstelleLong2DoubleOrderedMap- Angegeben von:
keySetin SchnittstelleMap<Long,Double> - Setzt außer Kraft:
keySetin KlasseLong2DoubleMaps.UnmodifyableMap
-
long2DoubleEntrySet
Beschreibung aus Schnittstelle kopiert:Long2DoubleMapType Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.- Angegeben von:
long2DoubleEntrySetin SchnittstelleLong2DoubleMap- Angegeben von:
long2DoubleEntrySetin SchnittstelleLong2DoubleOrderedMap- Setzt außer Kraft:
long2DoubleEntrySetin KlasseLong2DoubleMaps.UnmodifyableMap- Gibt zurück:
- a EntrySet of the collection
-