Modul speiger.src.collections
Klasse Long2BooleanMaps.UnmodifyableOrderedMap
java.lang.Object
java.util.AbstractMap<Long,Boolean>
speiger.src.collections.longs.maps.abstracts.AbstractLong2BooleanMap
speiger.src.collections.longs.utils.maps.Long2BooleanMaps.UnmodifyableMap
speiger.src.collections.longs.utils.maps.Long2BooleanMaps.UnmodifyableOrderedMap
- Alle implementierten Schnittstellen:
LongPredicate,Map<Long,,Boolean> Long2BooleanMap,Long2BooleanOrderedMap
- Umschließende Klasse:
Long2BooleanMaps
public static class Long2BooleanMaps.UnmodifyableOrderedMap
extends Long2BooleanMaps.UnmodifyableMap
implements Long2BooleanOrderedMap
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.AbstractLong2BooleanMap
AbstractLong2BooleanMap.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.Long2BooleanMap
Long2BooleanMap.BuilderCache, Long2BooleanMap.Entry, Long2BooleanMap.FastEntrySet, Long2BooleanMap.MapBuilderVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.longs.maps.interfaces.Long2BooleanOrderedMap
Long2BooleanOrderedMap.FastOrderedSet -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcopy()A Function that does a shallow clone of the Map itself.booleanA method to get the first Value of a Map.longA method to get the first Key of a Map.booleangetAndMoveToFirst(long key) A Specific get method that allows to move teh given key/value int the first index.booleangetAndMoveToLast(long key) A Specific get method that allows to move teh given key/value int the last index.keySet()booleanA 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.booleanputAndMoveToFirst(long key, boolean value) A customized put method that allows you to insert into the first index.booleanputAndMoveToLast(long key, boolean value) A customized put method that allows you to insert into the last index.Von Klasse geerbte Methoden speiger.src.collections.longs.utils.maps.Long2BooleanMaps.UnmodifyableMap
clear, computeBoolean, computeBooleanIfAbsent, computeBooleanIfAbsentNonDefault, computeBooleanIfPresent, computeBooleanIfPresentNonDefault, computeBooleanNonDefault, get, getOrDefault, mergeAllBoolean, mergeBoolean, put, putIfAbsent, remove, remove, removeOrDefault, replaceBooleans, replaceBooleans, supplyBooleanIfAbsent, supplyBooleanIfAbsentNonDefault, valuesVon Klasse geerbte Methoden speiger.src.collections.longs.maps.abstracts.AbstractLong2BooleanMap
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.Long2BooleanMap
compute, computeBoolean, computeBooleanIfAbsent, computeBooleanIfAbsentNonDefault, computeBooleanIfPresent, computeBooleanIfPresentNonDefault, computeBooleanNonDefault, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllBoolean, mergeBoolean, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValue, supplyBooleanIfAbsent, supplyBooleanIfAbsentNonDefault, test, valuesVon Schnittstelle geerbte Methoden speiger.src.collections.longs.maps.interfaces.Long2BooleanOrderedMap
synchronize, synchronize, unmodifiableVon Schnittstelle geerbte Methoden java.util.function.LongPredicate
and, negate, or
-
Methodendetails
-
putAndMoveToFirst
public boolean putAndMoveToFirst(long key, boolean value) Beschreibung aus Schnittstelle kopiert:Long2BooleanOrderedMapA customized put method that allows you to insert into the first index.- Angegeben von:
putAndMoveToFirstin SchnittstelleLong2BooleanOrderedMap- 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 boolean putAndMoveToLast(long key, boolean value) Beschreibung aus Schnittstelle kopiert:Long2BooleanOrderedMapA customized put method that allows you to insert into the last index. (This may be nessesary depending on the implementation)- Angegeben von:
putAndMoveToLastin SchnittstelleLong2BooleanOrderedMap- 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:Long2BooleanOrderedMapA specific move method to move a given key/value to the first index.- Angegeben von:
moveToFirstin SchnittstelleLong2BooleanOrderedMap- 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:Long2BooleanOrderedMapA specific move method to move a given key/value to the last index.- Angegeben von:
moveToLastin SchnittstelleLong2BooleanOrderedMap- Parameter:
key- that should be moved to the first last- Gibt zurück:
- true if the value was moved.
-
getAndMoveToFirst
public boolean getAndMoveToFirst(long key) Beschreibung aus Schnittstelle kopiert:Long2BooleanOrderedMapA Specific get method that allows to move teh given key/value int the first index.- Angegeben von:
getAndMoveToFirstin SchnittstelleLong2BooleanOrderedMap- Parameter:
key- that is searched for- Gibt zurück:
- the given value for the requested key or default return value
-
getAndMoveToLast
public boolean getAndMoveToLast(long key) Beschreibung aus Schnittstelle kopiert:Long2BooleanOrderedMapA Specific get method that allows to move teh given key/value int the last index.- Angegeben von:
getAndMoveToLastin SchnittstelleLong2BooleanOrderedMap- 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:Long2BooleanOrderedMapA method to get the first Key of a Map.- Angegeben von:
firstLongKeyin SchnittstelleLong2BooleanOrderedMap- Gibt zurück:
- the first key in the map
-
pollFirstLongKey
public long pollFirstLongKey()Beschreibung aus Schnittstelle kopiert:Long2BooleanOrderedMapA method to get and remove the first Key of a Map.- Angegeben von:
pollFirstLongKeyin SchnittstelleLong2BooleanOrderedMap- Gibt zurück:
- the first key in the map
-
lastLongKey
public long lastLongKey()Beschreibung aus Schnittstelle kopiert:Long2BooleanOrderedMapA method to get the last Key of a Map.- Angegeben von:
lastLongKeyin SchnittstelleLong2BooleanOrderedMap- Gibt zurück:
- the last key in the map
-
pollLastLongKey
public long pollLastLongKey()Beschreibung aus Schnittstelle kopiert:Long2BooleanOrderedMapA method to get and remove the last Key of a Map.- Angegeben von:
pollLastLongKeyin SchnittstelleLong2BooleanOrderedMap- Gibt zurück:
- the last key in the map
-
firstBooleanValue
public boolean firstBooleanValue()Beschreibung aus Schnittstelle kopiert:Long2BooleanOrderedMapA method to get the first Value of a Map.- Angegeben von:
firstBooleanValuein SchnittstelleLong2BooleanOrderedMap- Gibt zurück:
- the first key in the map
-
lastBooleanValue
public boolean lastBooleanValue()Beschreibung aus Schnittstelle kopiert:Long2BooleanOrderedMapA method to get the last Value of a Map.- Angegeben von:
lastBooleanValuein SchnittstelleLong2BooleanOrderedMap- Gibt zurück:
- the last key in the map
-
copy
Beschreibung aus Schnittstelle kopiert:Long2BooleanMapA 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 SchnittstelleLong2BooleanMap- Angegeben von:
copyin SchnittstelleLong2BooleanOrderedMap- Setzt außer Kraft:
copyin KlasseLong2BooleanMaps.UnmodifyableMap- Gibt zurück:
- a Shallow Copy of the Map
-
keySet
- Angegeben von:
keySetin SchnittstelleLong2BooleanMap- Angegeben von:
keySetin SchnittstelleLong2BooleanOrderedMap- Angegeben von:
keySetin SchnittstelleMap<Long,Boolean> - Setzt außer Kraft:
keySetin KlasseLong2BooleanMaps.UnmodifyableMap
-
long2BooleanEntrySet
Beschreibung aus Schnittstelle kopiert:Long2BooleanMapType Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.- Angegeben von:
long2BooleanEntrySetin SchnittstelleLong2BooleanMap- Angegeben von:
long2BooleanEntrySetin SchnittstelleLong2BooleanOrderedMap- Setzt außer Kraft:
long2BooleanEntrySetin KlasseLong2BooleanMaps.UnmodifyableMap- Gibt zurück:
- a EntrySet of the collection
-