public class Short2ShortLinkedOpenHashMap extends Short2ShortOpenHashMap implements Short2ShortSortedMap
AbstractShort2ShortMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2ShortSortedMap.FastSortedSetShort2ShortMap.Entry, Short2ShortMap.FastEntrySet| Constructor and Description |
|---|
Short2ShortLinkedOpenHashMap()
Default Constructor
|
Short2ShortLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Short2ShortLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Short2ShortLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Short> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2ShortLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Short> map,
float loadFactor)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2ShortLinkedOpenHashMap(short[] keys,
short[] values)
Helper constructor that allow to create a map from unboxed values
|
Short2ShortLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Short[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2ShortLinkedOpenHashMap(short[] keys,
short[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Short2ShortLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Short[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2ShortLinkedOpenHashMap(Short2ShortMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Short2ShortLinkedOpenHashMap(Short2ShortMap 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() |
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 Short2ShortLinkedOpenHashMap()
public Short2ShortLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Short2ShortLinkedOpenHashMap(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 Short2ShortLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Short[] 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 Short2ShortLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Short[] 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 Short2ShortLinkedOpenHashMap(short[] keys,
short[] 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 Short2ShortLinkedOpenHashMap(short[] keys,
short[] 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 Short2ShortLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Short> map)
map - the values that should be present in the mappublic Short2ShortLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Short> 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 Short2ShortLinkedOpenHashMap(Short2ShortMap map)
map - the values that should be present in the mappublic Short2ShortLinkedOpenHashMap(Short2ShortMap 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 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 Short2ShortOpenHashMappublic 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 Short2ShortOpenHashMappublic 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 Short2ShortOpenHashMappublic void forEach(ShortShortConsumer action)
Short2ShortMapforEach in interface Short2ShortMapforEach in class Short2ShortOpenHashMapaction - 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 Short2ShortOpenHashMap