public class Short2ShortLinkedOpenCustomHashMap extends Short2ShortOpenCustomHashMap implements Short2ShortSortedMap
AbstractShort2ShortMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2ShortSortedMap.FastSortedSetShort2ShortMap.Entry, Short2ShortMap.FastEntrySet| Constructor and Description |
|---|
Short2ShortLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ShortStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Short2ShortLinkedOpenCustomHashMap(int minCapacity,
ShortStrategy strategy)
Constructor that defines the minimum capacity
|
Short2ShortLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Short> map,
float loadFactor,
ShortStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2ShortLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Short> map,
ShortStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2ShortLinkedOpenCustomHashMap(short[] keys,
short[] values,
float loadFactor,
ShortStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Short2ShortLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Short[] values,
float loadFactor,
ShortStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2ShortLinkedOpenCustomHashMap(short[] keys,
short[] values,
ShortStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Short2ShortLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Short[] values,
ShortStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2ShortLinkedOpenCustomHashMap(Short2ShortMap map,
float loadFactor,
ShortStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Short2ShortLinkedOpenCustomHashMap(Short2ShortMap map,
ShortStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Short2ShortLinkedOpenCustomHashMap(ShortStrategy strategy)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
ShortComparator |
comparator() |
short |
firstShortKey()
A method to get the first Key of a Map.
|
short |
firstShortValue()
A method to get the first Value of a Map.
|
void |
forEach(ShortShortConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
short |
getAndMoveToFirst(short key)
A Specific get method that allows to move teh given key/value int the first index.
|
short |
getAndMoveToLast(short key)
A Specific get method that allows to move teh given key/value int the last index.
|
Short2ShortSortedMap |
headMap(short toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ShortSet |
keySet() |
short |
lastShortKey()
A method to get the last Key of a Map.
|
short |
lastShortValue()
A method to get the last Value 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.
|
short |
putAndMoveToFirst(short key,
short value)
A customized put method that allows you to insert into the first index.
|
short |
putAndMoveToLast(short key,
short value)
A customized put method that allows you to insert into the last index.
|
ObjectSet<Short2ShortMap.Entry> |
short2ShortEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Short2ShortSortedMap |
subMap(short fromKey,
short toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Short2ShortSortedMap |
tailMap(short fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
ShortCollection |
values() |
addTo, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsKey, containsValue, containsValue, get, getOrDefault, getShort, mergeAllShort, mergeShort, put, putIfAbsent, remove, remove, remove, remShort, remShortOrDefault, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceShorts, replaceShorts, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeShort, computeShortIfAbsent, computeShortIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getOrDefault, getOrDefault, getShort, merge, mergeAllShort, mergeShort, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remShort, remShortOrDefault, replace, replace, replace, replace, replaceAll, replaceShorts, replaceShorts, setDefaultReturnValuepublic Short2ShortLinkedOpenCustomHashMap(ShortStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Short2ShortLinkedOpenCustomHashMap(int minCapacity,
ShortStrategy 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 Short2ShortLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ShortStrategy 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 Short2ShortLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Short[] values,
ShortStrategy 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 Short2ShortLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Short[] values,
float loadFactor,
ShortStrategy 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 Short2ShortLinkedOpenCustomHashMap(short[] keys,
short[] values,
ShortStrategy 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 Short2ShortLinkedOpenCustomHashMap(short[] keys,
short[] values,
float loadFactor,
ShortStrategy 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 Short2ShortLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Short> map,
ShortStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Short2ShortLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Short> map,
float loadFactor,
ShortStrategy 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 Short2ShortLinkedOpenCustomHashMap(Short2ShortMap map, ShortStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Short2ShortLinkedOpenCustomHashMap(Short2ShortMap map, float loadFactor, ShortStrategy 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 short putAndMoveToFirst(short key,
short value)
Short2ShortSortedMapputAndMoveToFirst in interface Short2ShortSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public short putAndMoveToLast(short key,
short value)
Short2ShortSortedMapputAndMoveToLast in interface Short2ShortSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(short key)
Short2ShortSortedMapmoveToFirst in interface Short2ShortSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(short key)
Short2ShortSortedMapmoveToLast in interface Short2ShortSortedMapkey - that should be moved to the first lastpublic short getAndMoveToFirst(short key)
Short2ShortSortedMapgetAndMoveToFirst in interface Short2ShortSortedMapkey - that is searched forpublic short getAndMoveToLast(short key)
Short2ShortSortedMapgetAndMoveToLast in interface Short2ShortSortedMapkey - that is searched forpublic ShortComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Short,java.lang.Short>comparator in interface Short2ShortSortedMappublic Short2ShortSortedMap subMap(short fromKey, short toKey)
Short2ShortSortedMapsubMap in interface Short2ShortSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Short2ShortSortedMap headMap(short toKey)
Short2ShortSortedMapheadMap in interface Short2ShortSortedMaptoKey - where the headMap should endpublic Short2ShortSortedMap tailMap(short fromKey)
Short2ShortSortedMaptailMap in interface Short2ShortSortedMapfromKey - where the TailMap should startpublic short firstShortKey()
Short2ShortSortedMapfirstShortKey in interface Short2ShortSortedMappublic short pollFirstShortKey()
Short2ShortSortedMappollFirstShortKey in interface Short2ShortSortedMappublic short lastShortKey()
Short2ShortSortedMaplastShortKey in interface Short2ShortSortedMappublic short pollLastShortKey()
Short2ShortSortedMappollLastShortKey in interface Short2ShortSortedMappublic short firstShortValue()
Short2ShortSortedMapfirstShortValue in interface Short2ShortSortedMappublic short lastShortValue()
Short2ShortSortedMaplastShortValue in interface Short2ShortSortedMappublic ObjectSet<Short2ShortMap.Entry> short2ShortEntrySet()
Short2ShortMapshort2ShortEntrySet in interface Short2ShortMapshort2ShortEntrySet in class Short2ShortOpenCustomHashMappublic ShortSet keySet()
keySet in interface java.util.Map<java.lang.Short,java.lang.Short>keySet in interface java.util.SortedMap<java.lang.Short,java.lang.Short>keySet in interface Short2ShortMapkeySet in interface Short2ShortSortedMapkeySet in class Short2ShortOpenCustomHashMappublic ShortCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Short>values in interface java.util.SortedMap<java.lang.Short,java.lang.Short>values in interface Short2ShortMapvalues in interface Short2ShortSortedMapvalues in class Short2ShortOpenCustomHashMappublic void forEach(ShortShortConsumer action)
Short2ShortMapforEach in interface Short2ShortMapforEach in class Short2ShortOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Short,java.lang.Short>clear in class Short2ShortOpenCustomHashMap