public class Short2BooleanLinkedOpenCustomHashMap extends Short2BooleanOpenCustomHashMap implements Short2BooleanOrderedMap
AbstractShort2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2BooleanOrderedMap.FastOrderedSetShort2BooleanMap.BuilderCache, Short2BooleanMap.Entry, Short2BooleanMap.FastEntrySet, Short2BooleanMap.MapBuilder| Constructor and Description |
|---|
Short2BooleanLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
ShortStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Short2BooleanLinkedOpenCustomHashMap(int minCapacity,
ShortStrategy strategy)
Constructor that defines the minimum capacity
|
Short2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Boolean> map,
float loadFactor,
ShortStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Boolean> map,
ShortStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2BooleanLinkedOpenCustomHashMap(short[] keys,
boolean[] values,
float loadFactor,
ShortStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Short2BooleanLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Boolean[] values,
float loadFactor,
ShortStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2BooleanLinkedOpenCustomHashMap(short[] keys,
boolean[] values,
ShortStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Short2BooleanLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Boolean[] values,
ShortStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2BooleanLinkedOpenCustomHashMap(Short2BooleanMap 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.
|
Short2BooleanLinkedOpenCustomHashMap(Short2BooleanMap map,
ShortStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Short2BooleanLinkedOpenCustomHashMap(ShortStrategy strategy)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
Short2BooleanLinkedOpenCustomHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
short |
firstShortKey()
A method to get the first Key of a Map.
|
void |
forEach(ShortBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
getAndMoveToFirst(short key)
A Specific get method that allows to move teh given key/value int the first index.
|
boolean |
getAndMoveToLast(short key)
A Specific get method that allows to move teh given key/value int the last index.
|
ShortOrderedSet |
keySet() |
boolean |
lastBooleanValue()
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.
|
boolean |
putAndMoveToFirst(short key,
boolean value)
A customized put method that allows you to insert into the first index.
|
boolean |
putAndMoveToLast(short key,
boolean value)
A customized put method that allows you to insert into the last index.
|
ObjectOrderedSet<Short2BooleanMap.Entry> |
short2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
BooleanCollection |
values() |
computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, containsKey, containsKey, containsValue, containsValue, get, get, getOrDefault, mergeAllBoolean, mergeBoolean, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, supplyBooleanIfAbsent, trimentrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceBooleans, replaceBooleans, setDefaultReturnValuesynchronize, synchronize, unmodifiablebuilder, compute, computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllBoolean, mergeBoolean, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValue, supplyBooleanIfAbsentclearAndTrim, trimpublic Short2BooleanLinkedOpenCustomHashMap(ShortStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Short2BooleanLinkedOpenCustomHashMap(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 Short2BooleanLinkedOpenCustomHashMap(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 Short2BooleanLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Boolean[] 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 Short2BooleanLinkedOpenCustomHashMap(java.lang.Short[] keys,
java.lang.Boolean[] 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 Short2BooleanLinkedOpenCustomHashMap(short[] keys,
boolean[] 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 Short2BooleanLinkedOpenCustomHashMap(short[] keys,
boolean[] 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 Short2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Boolean> 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 Short2BooleanLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Boolean> 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 Short2BooleanLinkedOpenCustomHashMap(Short2BooleanMap 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 Short2BooleanLinkedOpenCustomHashMap(Short2BooleanMap 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 boolean putAndMoveToFirst(short key,
boolean value)
Short2BooleanOrderedMapputAndMoveToFirst in interface Short2BooleanOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(short key,
boolean value)
Short2BooleanOrderedMapputAndMoveToLast in interface Short2BooleanOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(short key)
Short2BooleanOrderedMapmoveToFirst in interface Short2BooleanOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(short key)
Short2BooleanOrderedMapmoveToLast in interface Short2BooleanOrderedMapkey - that should be moved to the first lastpublic boolean getAndMoveToFirst(short key)
Short2BooleanOrderedMapgetAndMoveToFirst in interface Short2BooleanOrderedMapkey - that is searched forpublic boolean getAndMoveToLast(short key)
Short2BooleanOrderedMapgetAndMoveToLast in interface Short2BooleanOrderedMapkey - that is searched forpublic Short2BooleanLinkedOpenCustomHashMap copy()
Short2BooleanMapcopy in interface Short2BooleanMapcopy in interface Short2BooleanOrderedMapcopy in class Short2BooleanOpenCustomHashMappublic short firstShortKey()
Short2BooleanOrderedMapfirstShortKey in interface Short2BooleanOrderedMappublic short pollFirstShortKey()
Short2BooleanOrderedMappollFirstShortKey in interface Short2BooleanOrderedMappublic short lastShortKey()
Short2BooleanOrderedMaplastShortKey in interface Short2BooleanOrderedMappublic short pollLastShortKey()
Short2BooleanOrderedMappollLastShortKey in interface Short2BooleanOrderedMappublic boolean firstBooleanValue()
Short2BooleanOrderedMapfirstBooleanValue in interface Short2BooleanOrderedMappublic boolean lastBooleanValue()
Short2BooleanOrderedMaplastBooleanValue in interface Short2BooleanOrderedMappublic ObjectOrderedSet<Short2BooleanMap.Entry> short2BooleanEntrySet()
Short2BooleanMapshort2BooleanEntrySet in interface Short2BooleanMapshort2BooleanEntrySet in interface Short2BooleanOrderedMapshort2BooleanEntrySet in class Short2BooleanOpenCustomHashMappublic ShortOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Short,java.lang.Boolean>keySet in interface Short2BooleanMapkeySet in interface Short2BooleanOrderedMapkeySet in class Short2BooleanOpenCustomHashMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Boolean>values in interface Short2BooleanMapvalues in class Short2BooleanOpenCustomHashMappublic void forEach(ShortBooleanConsumer action)
Short2BooleanMapforEach in interface Short2BooleanMapforEach in class Short2BooleanOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Short,java.lang.Boolean>clear in class Short2BooleanOpenCustomHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Short2BooleanOpenCustomHashMapsize - the amount of elements that should be allowed