public class Long2CharLinkedOpenHashMap extends Long2CharOpenHashMap implements Long2CharSortedMap
AbstractLong2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2CharSortedMap.FastSortedSetLong2CharMap.Entry, Long2CharMap.FastEntrySet| Constructor and Description |
|---|
Long2CharLinkedOpenHashMap()
Default Constructor
|
Long2CharLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Long2CharLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Long2CharLinkedOpenHashMap(long[] keys,
char[] values)
Helper constructor that allow to create a map from unboxed values
|
Long2CharLinkedOpenHashMap(long[] keys,
char[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Long2CharLinkedOpenHashMap(java.lang.Long[] keys,
java.lang.Character[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2CharLinkedOpenHashMap(java.lang.Long[] keys,
java.lang.Character[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2CharLinkedOpenHashMap(Long2CharMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2CharLinkedOpenHashMap(Long2CharMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Character> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Long2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Character> map,
float loadFactor)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
LongComparator |
comparator() |
char |
firstCharValue()
A method to get the first Value of a Map.
|
long |
firstLongKey()
A method to get the first Key of a Map.
|
void |
forEach(LongCharConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
char |
getAndMoveToFirst(long key)
A Specific get method that allows to move teh given key/value int the first index.
|
char |
getAndMoveToLast(long key)
A Specific get method that allows to move teh given key/value int the last index.
|
Long2CharSortedMap |
headMap(long toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
LongSet |
keySet() |
char |
lastCharValue()
A method to get the last Value of a Map.
|
long |
lastLongKey()
A method to get the last Key of a Map.
|
ObjectSet<Long2CharMap.Entry> |
long2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
boolean |
moveToFirst(long key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(long key)
A specific move method to move a given key/value to the last index.
|
long |
pollFirstLongKey()
A method to get and remove the first Key of a Map.
|
long |
pollLastLongKey()
A method to get and remove the last Key of a Map.
|
char |
putAndMoveToFirst(long key,
char value)
A customized put method that allows you to insert into the first index.
|
char |
putAndMoveToLast(long key,
char value)
A customized put method that allows you to insert into the last index.
|
Long2CharSortedMap |
subMap(long fromKey,
long toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Long2CharSortedMap |
tailMap(long fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
CharCollection |
values() |
addTo, computeChar, computeCharIfAbsent, computeCharIfPresent, containsKey, containsKey, containsValue, containsValue, get, getChar, getOrDefault, mergeAllChar, mergeChar, put, putIfAbsent, remLong, remLongOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceChars, replaceChars, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeChar, computeCharIfAbsent, computeCharIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getChar, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllChar, mergeChar, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remLong, remLongOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValuepublic Long2CharLinkedOpenHashMap()
public Long2CharLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Long2CharLinkedOpenHashMap(int minCapacity,
float loadFactor)
minCapacity - the minimum capacity the HashMap is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Long2CharLinkedOpenHashMap(java.lang.Long[] 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 lenghtpublic Long2CharLinkedOpenHashMap(java.lang.Long[] keys,
java.lang.Character[] values,
float loadFactor)
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 resizejava.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 Long2CharLinkedOpenHashMap(long[] 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 Long2CharLinkedOpenHashMap(long[] keys,
char[] values,
float loadFactor)
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 resizejava.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 Long2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Character> map)
map - the values that should be present in the mappublic Long2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Character> map,
float loadFactor)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public Long2CharLinkedOpenHashMap(Long2CharMap map)
map - the values that should be present in the mappublic Long2CharLinkedOpenHashMap(Long2CharMap map, float loadFactor)
map - the values that should be present in the maploadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public char putAndMoveToFirst(long key,
char value)
Long2CharSortedMapputAndMoveToFirst in interface Long2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public char putAndMoveToLast(long key,
char value)
Long2CharSortedMapputAndMoveToLast in interface Long2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(long key)
Long2CharSortedMapmoveToFirst in interface Long2CharSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(long key)
Long2CharSortedMapmoveToLast in interface Long2CharSortedMapkey - that should be moved to the first lastpublic char getAndMoveToFirst(long key)
Long2CharSortedMapgetAndMoveToFirst in interface Long2CharSortedMapkey - that is searched forpublic char getAndMoveToLast(long key)
Long2CharSortedMapgetAndMoveToLast in interface Long2CharSortedMapkey - that is searched forpublic LongComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Long,java.lang.Character>comparator in interface Long2CharSortedMappublic Long2CharSortedMap subMap(long fromKey, long toKey)
Long2CharSortedMapsubMap in interface Long2CharSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Long2CharSortedMap headMap(long toKey)
Long2CharSortedMapheadMap in interface Long2CharSortedMaptoKey - where the headMap should endpublic Long2CharSortedMap tailMap(long fromKey)
Long2CharSortedMaptailMap in interface Long2CharSortedMapfromKey - where the TailMap should startpublic long firstLongKey()
Long2CharSortedMapfirstLongKey in interface Long2CharSortedMappublic long pollFirstLongKey()
Long2CharSortedMappollFirstLongKey in interface Long2CharSortedMappublic long lastLongKey()
Long2CharSortedMaplastLongKey in interface Long2CharSortedMappublic long pollLastLongKey()
Long2CharSortedMappollLastLongKey in interface Long2CharSortedMappublic char firstCharValue()
Long2CharSortedMapfirstCharValue in interface Long2CharSortedMappublic char lastCharValue()
Long2CharSortedMaplastCharValue in interface Long2CharSortedMappublic ObjectSet<Long2CharMap.Entry> long2CharEntrySet()
Long2CharMaplong2CharEntrySet in interface Long2CharMaplong2CharEntrySet in class Long2CharOpenHashMappublic LongSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Character>keySet in interface java.util.SortedMap<java.lang.Long,java.lang.Character>keySet in interface Long2CharMapkeySet in interface Long2CharSortedMapkeySet in class Long2CharOpenHashMappublic CharCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Character>values in interface java.util.SortedMap<java.lang.Long,java.lang.Character>values in interface Long2CharMapvalues in interface Long2CharSortedMapvalues in class Long2CharOpenHashMappublic void forEach(LongCharConsumer action)
Long2CharMapforEach in interface Long2CharMapforEach in class Long2CharOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Long,java.lang.Character>clear in class Long2CharOpenHashMap