public class Short2BooleanLinkedOpenHashMap extends Short2BooleanOpenHashMap 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 |
|---|
Short2BooleanLinkedOpenHashMap()
Default Constructor
|
Short2BooleanLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Short2BooleanLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Short2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Boolean> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Boolean> map,
float loadFactor)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Short2BooleanLinkedOpenHashMap(short[] keys,
boolean[] values)
Helper constructor that allow to create a map from unboxed values
|
Short2BooleanLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Boolean[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2BooleanLinkedOpenHashMap(short[] keys,
boolean[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Short2BooleanLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Boolean[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Short2BooleanLinkedOpenHashMap(Short2BooleanMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Short2BooleanLinkedOpenHashMap(Short2BooleanMap 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() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
boolean |
containsValue(boolean value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Short2BooleanLinkedOpenHashMap |
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, 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, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllBoolean, mergeBoolean, put, put, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValue, supplyBooleanIfAbsent, testalwaysFalse, alwaysTrue, andType, negate, orTypeclearAndTrim, trimpublic Short2BooleanLinkedOpenHashMap()
public Short2BooleanLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Short2BooleanLinkedOpenHashMap(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 Short2BooleanLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Boolean[] 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 Short2BooleanLinkedOpenHashMap(java.lang.Short[] keys,
java.lang.Boolean[] 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 Short2BooleanLinkedOpenHashMap(short[] keys,
boolean[] 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 Short2BooleanLinkedOpenHashMap(short[] keys,
boolean[] 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 Short2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Boolean> map)
map - the values that should be present in the mappublic Short2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Short,? extends java.lang.Boolean> 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 Short2BooleanLinkedOpenHashMap(Short2BooleanMap map)
map - the values that should be present in the mappublic Short2BooleanLinkedOpenHashMap(Short2BooleanMap 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 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 boolean containsValue(boolean value)
Short2BooleanMapcontainsValue in interface Short2BooleanMapcontainsValue in class Short2BooleanOpenHashMapvalue - element that is searched for@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Short,java.lang.Boolean>containsValue in interface Short2BooleanMapcontainsValue in class Short2BooleanOpenHashMapvalue - that is searched for.Map.containsValue(Object)public Short2BooleanLinkedOpenHashMap copy()
Short2BooleanMapcopy in interface Short2BooleanMapcopy in interface Short2BooleanOrderedMapcopy in class Short2BooleanOpenHashMappublic 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 Short2BooleanOpenHashMappublic ShortOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Short,java.lang.Boolean>keySet in interface Short2BooleanMapkeySet in interface Short2BooleanOrderedMapkeySet in class Short2BooleanOpenHashMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Boolean>values in interface Short2BooleanMapvalues in class Short2BooleanOpenHashMappublic void forEach(ShortBooleanConsumer action)
Short2BooleanMapforEach in interface Short2BooleanMapforEach in class Short2BooleanOpenHashMapaction - 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 Short2BooleanOpenHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Short2BooleanOpenHashMapsize - the amount of elements that should be allowed