public class Short2CharLinkedOpenHashMap extends Short2CharOpenHashMap implements Short2CharSortedMap
AbstractShort2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2CharSortedMap.FastSortedSetShort2CharMap.Entry, Short2CharMap.FastEntrySet| Constructor and Description |
|---|
Short2CharLinkedOpenHashMap()
Default Constructor
|
Short2CharLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Short2CharLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Short2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Character> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? 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.
|
Short2CharLinkedOpenHashMap(short[] keys,
char[] values)
Helper constructor that allow to create a map from unboxed values
|
Short2CharLinkedOpenHashMap(short[] keys,
char[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Short2CharLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Character[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2CharLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Character[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2CharLinkedOpenHashMap(Short2CharMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Short2CharLinkedOpenHashMap(Short2CharMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
ShortComparator |
comparator() |
char |
firstCharValue()
A method to get the first Value of a Map.
|
short |
firstShortKey()
A method to get the first Key of a Map.
|
void |
forEach(ShortCharConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
char |
getAndMoveToFirst(short key)
A Specific get method that allows to move teh given key/value int the first index.
|
char |
getAndMoveToLast(short key)
A Specific get method that allows to move teh given key/value int the last index.
|
Short2CharSortedMap |
headMap(short toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ShortSet |
keySet() |
char |
lastCharValue()
A method to get the last Value of a Map.
|
short |
lastShortKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(short key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(short key)
A specific move method to move a given key/value to the last index.
|
short |
pollFirstShortKey()
A method to get and remove the first Key of a Map.
|
short |
pollLastShortKey()
A method to get and remove the last Key of a Map.
|
char |
putAndMoveToFirst(short key,
char value)
A customized put method that allows you to insert into the first index.
|
char |
putAndMoveToLast(short key,
char value)
A customized put method that allows you to insert into the last index.
|
ObjectSet<Short2CharMap.Entry> |
short2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Short2CharSortedMap |
subMap(short fromKey,
short toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Short2CharSortedMap |
tailMap(short 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, remove, remove, remove, remShort, remShortOrDefault, 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, remove, remove, remove, remShort, remShortOrDefault, replace, replace, replace, replace, replaceAll, replaceChars, replaceChars, setDefaultReturnValuepublic Short2CharLinkedOpenHashMap()
public Short2CharLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Short2CharLinkedOpenHashMap(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 Short2CharLinkedOpenHashMap(java.lang.Short[] 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 Short2CharLinkedOpenHashMap(java.lang.Short[] 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 Short2CharLinkedOpenHashMap(short[] 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 Short2CharLinkedOpenHashMap(short[] 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 Short2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Character> map)
map - the values that should be present in the mappublic Short2CharLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? 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 Short2CharLinkedOpenHashMap(Short2CharMap map)
map - the values that should be present in the mappublic Short2CharLinkedOpenHashMap(Short2CharMap 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(short key,
char value)
Short2CharSortedMapputAndMoveToFirst in interface Short2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public char putAndMoveToLast(short key,
char value)
Short2CharSortedMapputAndMoveToLast in interface Short2CharSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(short key)
Short2CharSortedMapmoveToFirst in interface Short2CharSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(short key)
Short2CharSortedMapmoveToLast in interface Short2CharSortedMapkey - that should be moved to the first lastpublic char getAndMoveToFirst(short key)
Short2CharSortedMapgetAndMoveToFirst in interface Short2CharSortedMapkey - that is searched forpublic char getAndMoveToLast(short key)
Short2CharSortedMapgetAndMoveToLast in interface Short2CharSortedMapkey - that is searched forpublic ShortComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Short,java.lang.Character>comparator in interface Short2CharSortedMappublic Short2CharSortedMap subMap(short fromKey, short toKey)
Short2CharSortedMapsubMap in interface Short2CharSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Short2CharSortedMap headMap(short toKey)
Short2CharSortedMapheadMap in interface Short2CharSortedMaptoKey - where the headMap should endpublic Short2CharSortedMap tailMap(short fromKey)
Short2CharSortedMaptailMap in interface Short2CharSortedMapfromKey - where the TailMap should startpublic short firstShortKey()
Short2CharSortedMapfirstShortKey in interface Short2CharSortedMappublic short pollFirstShortKey()
Short2CharSortedMappollFirstShortKey in interface Short2CharSortedMappublic short lastShortKey()
Short2CharSortedMaplastShortKey in interface Short2CharSortedMappublic short pollLastShortKey()
Short2CharSortedMappollLastShortKey in interface Short2CharSortedMappublic char firstCharValue()
Short2CharSortedMapfirstCharValue in interface Short2CharSortedMappublic char lastCharValue()
Short2CharSortedMaplastCharValue in interface Short2CharSortedMappublic ObjectSet<Short2CharMap.Entry> short2CharEntrySet()
Short2CharMapshort2CharEntrySet in interface Short2CharMapshort2CharEntrySet in class Short2CharOpenHashMappublic ShortSet keySet()
keySet in interface java.util.Map<java.lang.Short,java.lang.Character>keySet in interface java.util.SortedMap<java.lang.Short,java.lang.Character>keySet in interface Short2CharMapkeySet in interface Short2CharSortedMapkeySet in class Short2CharOpenHashMappublic CharCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Character>values in interface java.util.SortedMap<java.lang.Short,java.lang.Character>values in interface Short2CharMapvalues in interface Short2CharSortedMapvalues in class Short2CharOpenHashMappublic void forEach(ShortCharConsumer action)
Short2CharMapforEach in interface Short2CharMapforEach in class Short2CharOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Short,java.lang.Character>clear in class Short2CharOpenHashMap