public class Float2CharArrayMap extends AbstractFloat2CharMap implements Float2CharSortedMap
AbstractFloat2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Float2CharSortedMap.FastSortedSetFloat2CharMap.Entry, Float2CharMap.FastEntrySet| Constructor and Description |
|---|
Float2CharArrayMap()
Default Constructor
|
Float2CharArrayMap(float[] keys,
char[] values)
Helper constructor that allow to create a map from unboxed values
|
Float2CharArrayMap(float[] keys,
char[] values,
int length)
Helper constructor that allow to create a map from unboxed values
|
Float2CharArrayMap(java.lang.Float[] keys,
java.lang.Character[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Float2CharArrayMap(java.lang.Float[] keys,
java.lang.Character[] values,
int length)
Helper constructor that allow to create a map from boxed values (it will unbox them) with a custom length
|
Float2CharArrayMap(Float2CharMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Float2CharArrayMap(int minCapacity)
Constructor that defines the minimum capacity
|
Float2CharArrayMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Character> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
char |
addTo(float key,
char value)
A Helper method to add a primitives together.
|
void |
clear() |
FloatComparator |
comparator() |
char |
computeChar(float key,
FloatCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfAbsent(float key,
Float2CharFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfPresent(float key,
FloatCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(float key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(char value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value) |
char |
firstCharValue()
A method to get the first Value of a Map.
|
float |
firstFloatKey()
A method to get the first Key of a Map.
|
ObjectSortedSet<Float2CharMap.Entry> |
float2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
forEach(FloatCharConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
char |
getAndMoveToFirst(float key)
A Specific get method that allows to move teh given key/value int the first index.
|
char |
getAndMoveToLast(float key)
A Specific get method that allows to move teh given key/value int the last index.
|
char |
getChar(float key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getOrDefault(float key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
Float2CharSortedMap |
headMap(float toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
FloatSet |
keySet() |
char |
lastCharValue()
A method to get the last Value of a Map.
|
float |
lastFloatKey()
A method to get the last Key of a Map.
|
void |
mergeAllChar(Float2CharMap m,
CharCharUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
char |
mergeChar(float key,
char value,
CharCharUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
boolean |
moveToFirst(float key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(float key)
A specific move method to move a given key/value to the last index.
|
float |
pollFirstFloatKey()
A method to get and remove the first Key of a Map.
|
float |
pollLastFloatKey()
A method to get and remove the last Key of a Map.
|
char |
put(float key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putAndMoveToFirst(float key,
char value)
A customized put method that allows you to insert into the first index.
|
char |
putAndMoveToLast(float key,
char value)
A customized put method that allows you to insert into the last index.
|
char |
putIfAbsent(float key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
remFloat(float key)
Type Specific remove function to reduce boxing/unboxing
|
char |
remFloatOrDefault(float key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(float key,
char value)
Type Specific remove function to reduce boxing/unboxing
|
java.lang.Character |
remove(java.lang.Object key) |
boolean |
remove(java.lang.Object key,
java.lang.Object value) |
char |
replace(float key,
char value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(float key,
char oldValue,
char newValue)
A Type Specific replace method to replace an existing value
|
int |
size() |
Float2CharSortedMap |
subMap(float fromKey,
float toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Float2CharSortedMap |
tailMap(float fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
CharCollection |
values() |
addToAll, entrySet, equals, get, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceChars, replaceChars, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddToAll, compute, computeIfAbsent, computeIfPresent, entrySet, forEach, get, getDefaultReturnValue, getOrDefault, merge, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValuepublic Float2CharArrayMap()
public Float2CharArrayMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Float2CharArrayMap(java.lang.Float[] keys,
java.lang.Character[] values)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.java.lang.IllegalStateException - if the keys and values do not match in lengthpublic Float2CharArrayMap(java.lang.Float[] keys,
java.lang.Character[] values,
int length)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.length - the amount of values that should be pulled from the arrayjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Float2CharArrayMap(float[] keys,
char[] values)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.java.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Float2CharArrayMap(float[] keys,
char[] values,
int length)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.length - the amount of values that should be pulled from the arrayjava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Float2CharArrayMap(java.util.Map<? extends java.lang.Float,? extends java.lang.Character> map)
map - the values that should be present in the mappublic Float2CharArrayMap(Float2CharMap map)
map - the values that should be present in the mappublic char put(float key,
char value)
Float2CharMapput in interface Float2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(float key,
char value)
Float2CharMapputIfAbsent in interface Float2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(float key,
char value)
Float2CharMapaddTo in interface Float2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char putAndMoveToFirst(float key,
char value)
Float2CharSortedMapputAndMoveToFirst in interface Float2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public char putAndMoveToLast(float key,
char value)
Float2CharSortedMapputAndMoveToLast in interface Float2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(float key)
Float2CharSortedMapmoveToFirst in interface Float2CharSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(float key)
Float2CharSortedMapmoveToLast in interface Float2CharSortedMapkey - that should be moved to the first lastpublic boolean containsKey(float key)
Float2CharMapcontainsKey in interface Float2CharMapcontainsKey in class AbstractFloat2CharMapkey - element that is searched forpublic boolean containsValue(char value)
Float2CharMapcontainsValue in interface Float2CharMapcontainsValue in class AbstractFloat2CharMapvalue - element that is searched forpublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Float,java.lang.Character>containsKey in interface Float2CharMapcontainsKey in class java.util.AbstractMap<java.lang.Float,java.lang.Character>key - that is searched for.Map.containsKey(Object)public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Float,java.lang.Character>containsValue in interface Float2CharMapcontainsValue in class java.util.AbstractMap<java.lang.Float,java.lang.Character>value - that is searched for.Map.containsValue(Object)public char getChar(float key)
Float2CharMapgetChar in interface Float2CharFunctiongetChar in interface Float2CharMapkey - the key that is searched forpublic char getOrDefault(float key,
char defaultValue)
Float2CharMapgetOrDefault in interface Float2CharMapgetOrDefault in class AbstractFloat2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic char getAndMoveToFirst(float key)
Float2CharSortedMapgetAndMoveToFirst in interface Float2CharSortedMapkey - that is searched forpublic char getAndMoveToLast(float key)
Float2CharSortedMapgetAndMoveToLast in interface Float2CharSortedMapkey - that is searched forpublic float firstFloatKey()
Float2CharSortedMapfirstFloatKey in interface Float2CharSortedMappublic float lastFloatKey()
Float2CharSortedMaplastFloatKey in interface Float2CharSortedMappublic char firstCharValue()
Float2CharSortedMapfirstCharValue in interface Float2CharSortedMappublic char lastCharValue()
Float2CharSortedMaplastCharValue in interface Float2CharSortedMappublic float pollFirstFloatKey()
Float2CharSortedMappollFirstFloatKey in interface Float2CharSortedMappublic float pollLastFloatKey()
Float2CharSortedMappollLastFloatKey in interface Float2CharSortedMappublic char remFloat(float key)
Float2CharMapremFloat in interface Float2CharMapkey - the element that should be removedpublic char remFloatOrDefault(float key,
char defaultValue)
Float2CharMapremFloatOrDefault in interface Float2CharMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(float key,
char value)
Float2CharMapremove in interface Float2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public java.lang.Character remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Float,java.lang.Character>remove in interface Float2CharMapremove in class java.util.AbstractMap<java.lang.Float,java.lang.Character>key - the element that should be removedMap.remove(Object)public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Float,java.lang.Character>remove in interface Float2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public void forEach(FloatCharConsumer action)
Float2CharMapforEach in interface Float2CharMapforEach in class AbstractFloat2CharMapaction - processor of the values that are iterator overpublic FloatSet keySet()
keySet in interface java.util.Map<java.lang.Float,java.lang.Character>keySet in interface java.util.SortedMap<java.lang.Float,java.lang.Character>keySet in interface Float2CharMapkeySet in interface Float2CharSortedMapkeySet in class AbstractFloat2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Float,java.lang.Character>values in interface java.util.SortedMap<java.lang.Float,java.lang.Character>values in interface Float2CharMapvalues in interface Float2CharSortedMapvalues in class AbstractFloat2CharMappublic ObjectSortedSet<Float2CharMap.Entry> float2CharEntrySet()
Float2CharMapfloat2CharEntrySet in interface Float2CharMappublic boolean replace(float key,
char oldValue,
char newValue)
Float2CharMapreplace in interface Float2CharMapreplace in class AbstractFloat2CharMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public char replace(float key,
char value)
Float2CharMapreplace in interface Float2CharMapreplace in class AbstractFloat2CharMapkey - the element that should be searched forvalue - the value to replace with.public char computeChar(float key,
FloatCharUnaryOperator mappingFunction)
Float2CharMapcomputeChar in interface Float2CharMapcomputeChar in class AbstractFloat2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic char computeCharIfAbsent(float key,
Float2CharFunction mappingFunction)
Float2CharMapcomputeCharIfAbsent in interface Float2CharMapcomputeCharIfAbsent in class AbstractFloat2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic char computeCharIfPresent(float key,
FloatCharUnaryOperator mappingFunction)
Float2CharMapcomputeCharIfPresent in interface Float2CharMapcomputeCharIfPresent in class AbstractFloat2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic char mergeChar(float key,
char value,
CharCharUnaryOperator mappingFunction)
Float2CharMapmergeChar in interface Float2CharMapmergeChar in class AbstractFloat2CharMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllChar(Float2CharMap m, CharCharUnaryOperator mappingFunction)
Float2CharMapmergeAllChar in interface Float2CharMapmergeAllChar in class AbstractFloat2CharMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic int size()
size in interface java.util.Map<java.lang.Float,java.lang.Character>size in class java.util.AbstractMap<java.lang.Float,java.lang.Character>public void clear()
clear in interface java.util.Map<java.lang.Float,java.lang.Character>clear in class java.util.AbstractMap<java.lang.Float,java.lang.Character>public FloatComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Float,java.lang.Character>comparator in interface Float2CharSortedMappublic Float2CharSortedMap subMap(float fromKey, float toKey)
Float2CharSortedMapsubMap in interface Float2CharSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Float2CharSortedMap headMap(float toKey)
Float2CharSortedMapheadMap in interface Float2CharSortedMaptoKey - where the headMap should endpublic Float2CharSortedMap tailMap(float fromKey)
Float2CharSortedMaptailMap in interface Float2CharSortedMapfromKey - where the TailMap should start