Modul speiger.src.collections
Klasse AbstractByte2FloatMap
java.lang.Object
java.util.AbstractMap<Byte,Float>
speiger.src.collections.bytes.maps.abstracts.AbstractByte2FloatMap
- Alle implementierten Schnittstellen:
Map<Byte,,Float> Byte2FloatFunction,Byte2FloatMap
- Bekannte direkte Unterklassen:
Byte2FloatArrayMap,Byte2FloatAVLTreeMap,Byte2FloatConcurrentOpenHashMap,Byte2FloatMaps.EmptyMap,Byte2FloatMaps.SingletonMap,Byte2FloatMaps.SynchronizedMap,Byte2FloatMaps.UnmodifyableMap,Byte2FloatOpenCustomHashMap,Byte2FloatOpenHashMap,Byte2FloatRBTreeMap,ImmutableByte2FloatOpenHashMap
public abstract class AbstractByte2FloatMap
extends AbstractMap<Byte,Float>
implements Byte2FloatMap
A Base Implementation of a Type Specific Map to reduce boxing/unboxing
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classA Simple Type Specific Entry class to reduce boxing/unboxingVon 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.bytes.maps.interfaces.Byte2FloatMap
Byte2FloatMap.BuilderCache, Byte2FloatMap.Entry, Byte2FloatMap.FastEntrySet, Byte2FloatMap.MapBuilder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidA Helper method to bulk add primitives together.floatcomputeFloat(byte key, ByteFloatUnaryOperator mappingFunction) A Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".floatcomputeFloatIfAbsent(byte key, Byte2FloatFunction mappingFunction) A Type Specific computeIfAbsent method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".floatcomputeFloatIfAbsentNonDefault(byte key, Byte2FloatFunction mappingFunction) A Type Specific computeIfAbsent method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".floatcomputeFloatIfPresent(byte key, ByteFloatUnaryOperator mappingFunction) A Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".floatcomputeFloatIfPresentNonDefault(byte key, ByteFloatUnaryOperator mappingFunction) A Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".floatcomputeFloatNonDefault(byte key, ByteFloatUnaryOperator mappingFunction) A Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".booleancontainsKey(byte key) Type Specific method to reduce boxing/unboxing of valuesbooleancontainsValue(float value) Type Specific method to reduce boxing/unboxing of valuescopy()A Function that does a shallow clone of the Map itself.entrySet()booleanvoidforEach(ByteFloatConsumer action) Type Specific forEach method to reduce boxing/unboxingfloatMethod to see what the default return value is.floatgetOrDefault(byte key, float defaultValue) A Type Specific getOrDefault method to reduce boxing/unboxinggetOrDefault(Object key, Float defaultValue) inthashCode()keySet()voidmergeAllFloat(Byte2FloatMap m, FloatFloatUnaryOperator mappingFunction) A Bulk method for merging Maps.floatmergeFloat(byte key, float value, FloatFloatUnaryOperator mappingFunction) A Type Specific merge method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".Veraltet.voidputAll(byte[] keys, float[] values, int offset, int size) Type Specific array method to bulk add elements into a map without creating a wrapper and increasing performancesvoidType Specific Object array method to bulk add elements into a map without creating a wrapper and increasing performancesvoidvoidType Specific function for the bull putting of valuesvoidType-Specific bulk put method put elements into the map if not present.floatreplace(byte key, float value) A Type Specific replace method to reduce boxing/unboxing replace an existing valuebooleanreplace(byte key, float oldValue, float newValue) A Type Specific replace method to replace an existing valuevoidreplaceFloats(ByteFloatUnaryOperator mappingFunction) A Type Specific mass replace method to reduce boxing/unboxingvoidType-Specific bulk replace method.setDefaultReturnValue(float v) Method to define the default return value if a requested key isn't presentfloatsupplyFloatIfAbsent(byte key, FloatSupplier valueProvider) A Supplier based computeIfAbsent function to fill the most used usecase of this function If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".floatsupplyFloatIfAbsentNonDefault(byte key, FloatSupplier valueProvider) A Supplier based computeIfAbsent function to fill the most used usecase of this function If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null".values()Von Klasse geerbte Methoden java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, size, toStringVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.maps.interfaces.Byte2FloatMap
addTo, applyAsFloat, byte2FloatEntrySet, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, merge, put, put, put, putAll, putAll, putIfAbsent, putIfAbsent, remove, remove, remove, removeOrDefault, replace, replace, replaceAll, subFrom, synchronize, synchronize, unmodifiable
-
Konstruktordetails
-
AbstractByte2FloatMap
public AbstractByte2FloatMap()
-
-
Methodendetails
-
getDefaultReturnValue
public float getDefaultReturnValue()Beschreibung aus Schnittstelle kopiert:Byte2FloatMapMethod to see what the default return value is.- Angegeben von:
getDefaultReturnValuein SchnittstelleByte2FloatMap- Gibt zurück:
- default return value
-
setDefaultReturnValue
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapMethod to define the default return value if a requested key isn't present- Angegeben von:
setDefaultReturnValuein SchnittstelleByte2FloatMap- Parameter:
v- value that should be the default return value- Gibt zurück:
- itself
-
copy
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA 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 SchnittstelleByte2FloatMap- Gibt zurück:
- a Shallow Copy of the Map
-
put
Veraltet.- Angegeben von:
putin SchnittstelleByte2FloatMap- Angegeben von:
putin SchnittstelleMap<Byte,Float> - Setzt außer Kraft:
putin KlasseAbstractMap<Byte,Float>
-
addToAll
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Helper method to bulk add primitives together.- Angegeben von:
addToAllin SchnittstelleByte2FloatMap- Parameter:
m- the values that should be added/inserted
-
putAll
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapType Specific function for the bull putting of values- Angegeben von:
putAllin SchnittstelleByte2FloatMap- Parameter:
m- the elements that should be inserted
-
putAll
-
putAll
public void putAll(byte[] keys, float[] values, int offset, int size) Beschreibung aus Schnittstelle kopiert:Byte2FloatMapType Specific array method to bulk add elements into a map without creating a wrapper and increasing performances- Angegeben von:
putAllin SchnittstelleByte2FloatMap- Parameter:
keys- the keys that should be addedvalues- the values that should be addedoffset- where the to start in the arraysize- how many elements should be added- Siehe auch:
-
putAll
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapType Specific Object array method to bulk add elements into a map without creating a wrapper and increasing performances- Angegeben von:
putAllin SchnittstelleByte2FloatMap- Parameter:
keys- the keys that should be addedvalues- the values that should be addedoffset- where the to start in the arraysize- how many elements should be added- Siehe auch:
-
putAllIfAbsent
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapType-Specific bulk put method put elements into the map if not present.- Angegeben von:
putAllIfAbsentin SchnittstelleByte2FloatMap- Parameter:
m- elements that should be added if not present.
-
containsKey
public boolean containsKey(byte key) Beschreibung aus Schnittstelle kopiert:Byte2FloatMapType Specific method to reduce boxing/unboxing of values- Angegeben von:
containsKeyin SchnittstelleByte2FloatMap- Parameter:
key- element that is searched for- Gibt zurück:
- if the key is present
-
containsValue
public boolean containsValue(float value) Beschreibung aus Schnittstelle kopiert:Byte2FloatMapType Specific method to reduce boxing/unboxing of values- Angegeben von:
containsValuein SchnittstelleByte2FloatMap- Parameter:
value- element that is searched for- Gibt zurück:
- if the value is present
-
replace
public boolean replace(byte key, float oldValue, float newValue) Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Type Specific replace method to replace an existing value- Angegeben von:
replacein SchnittstelleByte2FloatMap- Parameter:
key- the element that should be searched foroldValue- the expected value to be replacednewValue- the value to replace the oldValue with.- Gibt zurück:
- true if the value got replaced
-
replace
public float replace(byte key, float value) Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Type Specific replace method to reduce boxing/unboxing replace an existing value- Angegeben von:
replacein SchnittstelleByte2FloatMap- Parameter:
key- the element that should be searched forvalue- the value to replace with.- Gibt zurück:
- the present value or default return value
-
replaceFloats
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapType-Specific bulk replace method. Could be seen as putAllIfPresent- Angegeben von:
replaceFloatsin SchnittstelleByte2FloatMap- Parameter:
m- elements that should be replaced.
-
replaceFloats
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Type Specific mass replace method to reduce boxing/unboxing- Angegeben von:
replaceFloatsin SchnittstelleByte2FloatMap- Parameter:
mappingFunction- operation to replace all values
-
computeFloat
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
computeFloatin SchnittstelleByte2FloatMap- Parameter:
key- the key that should be computedmappingFunction- the operator that should generate the value- Gibt zurück:
- the result of the computation
-
computeFloatIfAbsent
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Type Specific computeIfAbsent method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
computeFloatIfAbsentin SchnittstelleByte2FloatMap- Parameter:
key- the key that should be computedmappingFunction- the operator that should generate the value if not present- Gibt zurück:
- the result of the computed value or present value
-
supplyFloatIfAbsent
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Supplier based computeIfAbsent function to fill the most used usecase of this function If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
supplyFloatIfAbsentin SchnittstelleByte2FloatMap- Parameter:
key- the key that should be computedvalueProvider- the value if not present- Gibt zurück:
- the result of the computed value or present value
-
computeFloatIfPresent
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
computeFloatIfPresentin SchnittstelleByte2FloatMap- Parameter:
key- the key that should be computedmappingFunction- the operator that should generate the value if present- Gibt zurück:
- the result of the default return value or present value
-
computeFloatNonDefault
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
computeFloatNonDefaultin SchnittstelleByte2FloatMap- Parameter:
key- the key that should be computedmappingFunction- the operator that should generate the value- Gibt zurück:
- the result of the computation
-
computeFloatIfAbsentNonDefault
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Type Specific computeIfAbsent method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
computeFloatIfAbsentNonDefaultin SchnittstelleByte2FloatMap- Parameter:
key- the key that should be computedmappingFunction- the operator that should generate the value if not present- Gibt zurück:
- the result of the computed value or present value
-
supplyFloatIfAbsentNonDefault
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Supplier based computeIfAbsent function to fill the most used usecase of this function If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
supplyFloatIfAbsentNonDefaultin SchnittstelleByte2FloatMap- Parameter:
key- the key that should be computedvalueProvider- the value if not present- Gibt zurück:
- the result of the computed value or present value
-
computeFloatIfPresentNonDefault
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Type Specific compute method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
computeFloatIfPresentNonDefaultin SchnittstelleByte2FloatMap- Parameter:
key- the key that should be computedmappingFunction- the operator that should generate the value if present- Gibt zurück:
- the result of the default return value or present value
-
mergeFloat
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Type Specific merge method to reduce boxing/unboxing If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
mergeFloatin SchnittstelleByte2FloatMap- Parameter:
key- the key that should be be searched forvalue- the value that should be merged withmappingFunction- the operator that should generate the new Value- Gibt zurück:
- the result of the merge
-
mergeAllFloat
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Bulk method for merging Maps. If the generated value equals the getDefaultReturnValue it will simply not insert it since that is treated as "null". A "Null Value" will be treated as "Do not insert/remove" based on how the Java has specified it.- Angegeben von:
mergeAllFloatin SchnittstelleByte2FloatMap- Parameter:
m- the entries that should be bulk addedmappingFunction- the operator that should generate the new Value
-
get
- Angegeben von:
getin SchnittstelleByte2FloatMap- Angegeben von:
getin SchnittstelleMap<Byte,Float> - Setzt außer Kraft:
getin KlasseAbstractMap<Byte,Float>
-
getOrDefault
- Angegeben von:
getOrDefaultin SchnittstelleByte2FloatMap- Angegeben von:
getOrDefaultin SchnittstelleMap<Byte,Float>
-
getOrDefault
public float getOrDefault(byte key, float defaultValue) Beschreibung aus Schnittstelle kopiert:Byte2FloatMapA Type Specific getOrDefault method to reduce boxing/unboxing- Angegeben von:
getOrDefaultin SchnittstelleByte2FloatMap- Parameter:
key- the key that is searched fordefaultValue- the value that should be returned if the key is not present- Gibt zurück:
- the searched value or defaultValue value
-
remove
- Angegeben von:
removein SchnittstelleByte2FloatMap- Angegeben von:
removein SchnittstelleMap<Byte,Float> - Setzt außer Kraft:
removein KlasseAbstractMap<Byte,Float> - Parameter:
key- the element that should be removed- Gibt zurück:
- the value that was removed or default return value
- Siehe auch:
-
forEach
Beschreibung aus Schnittstelle kopiert:Byte2FloatMapType Specific forEach method to reduce boxing/unboxing- Angegeben von:
forEachin SchnittstelleByte2FloatMap- Parameter:
action- processor of the values that are iterator over
-
keySet
- Angegeben von:
keySetin SchnittstelleByte2FloatMap- Angegeben von:
keySetin SchnittstelleMap<Byte,Float> - Setzt außer Kraft:
keySetin KlasseAbstractMap<Byte,Float>
-
values
- Angegeben von:
valuesin SchnittstelleByte2FloatMap- Angegeben von:
valuesin SchnittstelleMap<Byte,Float> - Setzt außer Kraft:
valuesin KlasseAbstractMap<Byte,Float>
-
entrySet
- Angegeben von:
entrySetin SchnittstelleByte2FloatMap- Angegeben von:
entrySetin SchnittstelleMap<Byte,Float> - Angegeben von:
entrySetin KlasseAbstractMap<Byte,Float>
-
equals
-
hashCode
public int hashCode()
-