public class Char2FloatLinkedOpenCustomHashMap extends Char2FloatOpenCustomHashMap implements Char2FloatSortedMap
AbstractChar2FloatMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2FloatSortedMap.FastSortedSetChar2FloatMap.Entry, Char2FloatMap.FastEntrySet| Constructor and Description |
|---|
Char2FloatLinkedOpenCustomHashMap(char[] keys,
float[] values,
CharStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Char2FloatLinkedOpenCustomHashMap(char[] keys,
float[] values,
float loadFactor,
CharStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Char2FloatLinkedOpenCustomHashMap(Char2FloatMap map,
CharStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2FloatLinkedOpenCustomHashMap(Char2FloatMap map,
float loadFactor,
CharStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Char2FloatLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Float[] values,
CharStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2FloatLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Float[] values,
float loadFactor,
CharStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Char2FloatLinkedOpenCustomHashMap(CharStrategy strategy)
Default Constructor
|
Char2FloatLinkedOpenCustomHashMap(int minCapacity,
CharStrategy strategy)
Constructor that defines the minimum capacity
|
Char2FloatLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
CharStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Char2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Float> map,
CharStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Char2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Float> map,
float loadFactor,
CharStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectSet<Char2FloatMap.Entry> |
char2FloatEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear() |
CharComparator |
comparator() |
char |
firstCharKey()
A method to get the first Key of a Map.
|
float |
firstFloatValue()
A method to get the first Value of a Map.
|
void |
forEach(CharFloatConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
float |
getAndMoveToFirst(char key)
A Specific get method that allows to move teh given key/value int the first index.
|
float |
getAndMoveToLast(char key)
A Specific get method that allows to move teh given key/value int the last index.
|
Char2FloatSortedMap |
headMap(char toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
CharSet |
keySet() |
char |
lastCharKey()
A method to get the last Key of a Map.
|
float |
lastFloatValue()
A method to get the last Value of a Map.
|
boolean |
moveToFirst(char key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(char key)
A specific move method to move a given key/value to the last index.
|
char |
pollFirstCharKey()
A method to get and remove the first Key of a Map.
|
char |
pollLastCharKey()
A method to get and remove the last Key of a Map.
|
float |
putAndMoveToFirst(char key,
float value)
A customized put method that allows you to insert into the first index.
|
float |
putAndMoveToLast(char key,
float value)
A customized put method that allows you to insert into the last index.
|
Char2FloatSortedMap |
subMap(char fromKey,
char toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Char2FloatSortedMap |
tailMap(char fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
FloatCollection |
values() |
addTo, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, containsKey, containsKey, containsValue, containsValue, get, getFloat, getOrDefault, mergeAllFloat, mergeFloat, put, putIfAbsent, remChar, remCharOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceFloats, replaceFloats, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeFloat, computeFloatIfAbsent, computeFloatIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getFloat, getOrDefault, getOrDefault, merge, mergeAllFloat, mergeFloat, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remChar, remCharOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceFloats, replaceFloats, setDefaultReturnValuepublic Char2FloatLinkedOpenCustomHashMap(CharStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Char2FloatLinkedOpenCustomHashMap(int minCapacity,
CharStrategy strategy)
minCapacity - the minimum capacity the HashMap is allowed to be.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativepublic Char2FloatLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
CharStrategy strategy)
minCapacity - the minimum capacity the HashMap is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Char2FloatLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Float[] values,
CharStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Char2FloatLinkedOpenCustomHashMap(java.lang.Character[] keys,
java.lang.Float[] values,
float loadFactor,
CharStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtjava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Char2FloatLinkedOpenCustomHashMap(char[] keys,
float[] values,
CharStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtpublic Char2FloatLinkedOpenCustomHashMap(char[] keys,
float[] values,
float loadFactor,
CharStrategy strategy)
keys - the keys that should be put into the mapvalues - the values that should be put into the map.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the keys and values do not match in lenghtjava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Char2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Float> map,
CharStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Char2FloatLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Character,? extends java.lang.Float> map,
float loadFactor,
CharStrategy strategy)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Char2FloatLinkedOpenCustomHashMap(Char2FloatMap map, CharStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Char2FloatLinkedOpenCustomHashMap(Char2FloatMap map, float loadFactor, CharStrategy strategy)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public float putAndMoveToFirst(char key,
float value)
Char2FloatSortedMapputAndMoveToFirst in interface Char2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public float putAndMoveToLast(char key,
float value)
Char2FloatSortedMapputAndMoveToLast in interface Char2FloatSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(char key)
Char2FloatSortedMapmoveToFirst in interface Char2FloatSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(char key)
Char2FloatSortedMapmoveToLast in interface Char2FloatSortedMapkey - that should be moved to the first lastpublic float getAndMoveToFirst(char key)
Char2FloatSortedMapgetAndMoveToFirst in interface Char2FloatSortedMapkey - that is searched forpublic float getAndMoveToLast(char key)
Char2FloatSortedMapgetAndMoveToLast in interface Char2FloatSortedMapkey - that is searched forpublic CharComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Character,java.lang.Float>comparator in interface Char2FloatSortedMappublic Char2FloatSortedMap subMap(char fromKey, char toKey)
Char2FloatSortedMapsubMap in interface Char2FloatSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Char2FloatSortedMap headMap(char toKey)
Char2FloatSortedMapheadMap in interface Char2FloatSortedMaptoKey - where the headMap should endpublic Char2FloatSortedMap tailMap(char fromKey)
Char2FloatSortedMaptailMap in interface Char2FloatSortedMapfromKey - where the TailMap should startpublic char firstCharKey()
Char2FloatSortedMapfirstCharKey in interface Char2FloatSortedMappublic char pollFirstCharKey()
Char2FloatSortedMappollFirstCharKey in interface Char2FloatSortedMappublic char lastCharKey()
Char2FloatSortedMaplastCharKey in interface Char2FloatSortedMappublic char pollLastCharKey()
Char2FloatSortedMappollLastCharKey in interface Char2FloatSortedMappublic float firstFloatValue()
Char2FloatSortedMapfirstFloatValue in interface Char2FloatSortedMappublic float lastFloatValue()
Char2FloatSortedMaplastFloatValue in interface Char2FloatSortedMappublic ObjectSet<Char2FloatMap.Entry> char2FloatEntrySet()
Char2FloatMapchar2FloatEntrySet in interface Char2FloatMapchar2FloatEntrySet in class Char2FloatOpenCustomHashMappublic CharSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Float>keySet in interface java.util.SortedMap<java.lang.Character,java.lang.Float>keySet in interface Char2FloatMapkeySet in interface Char2FloatSortedMapkeySet in class Char2FloatOpenCustomHashMappublic FloatCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Float>values in interface java.util.SortedMap<java.lang.Character,java.lang.Float>values in interface Char2FloatMapvalues in interface Char2FloatSortedMapvalues in class Char2FloatOpenCustomHashMappublic void forEach(CharFloatConsumer action)
Char2FloatMapforEach in interface Char2FloatMapforEach in class Char2FloatOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Character,java.lang.Float>clear in class Char2FloatOpenCustomHashMap