public class Short2BooleanLinkedOpenHashMap extends Short2BooleanOpenHashMap implements Short2BooleanSortedMap
AbstractShort2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2BooleanSortedMap.FastSortedSetShort2BooleanMap.Entry, Short2BooleanMap.FastEntrySet| 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() |
ShortComparator |
comparator() |
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.
|
Short2BooleanSortedMap |
headMap(short toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ShortSet |
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.
|
ObjectSet<Short2BooleanMap.Entry> |
short2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
Short2BooleanSortedMap |
subMap(short fromKey,
short toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Short2BooleanSortedMap |
tailMap(short fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
BooleanCollection |
values() |
computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, containsKey, containsKey, containsValue, containsValue, get, getBoolean, getOrDefault, mergeAllBoolean, mergeBoolean, put, putIfAbsent, remove, remove, remove, remShort, remShortOrDefault, replace, replace, sizeentrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceBooleans, replaceBooleans, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapcompute, computeBoolean, computeBooleanIfAbsent, computeBooleanIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getBoolean, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllBoolean, mergeBoolean, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remShort, remShortOrDefault, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValuepublic 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)
Short2BooleanSortedMapputAndMoveToFirst in interface Short2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(short key,
boolean value)
Short2BooleanSortedMapputAndMoveToLast in interface Short2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(short key)
Short2BooleanSortedMapmoveToFirst in interface Short2BooleanSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(short key)
Short2BooleanSortedMapmoveToLast in interface Short2BooleanSortedMapkey - that should be moved to the first lastpublic boolean getAndMoveToFirst(short key)
Short2BooleanSortedMapgetAndMoveToFirst in interface Short2BooleanSortedMapkey - that is searched forpublic boolean getAndMoveToLast(short key)
Short2BooleanSortedMapgetAndMoveToLast in interface Short2BooleanSortedMapkey - that is searched forpublic ShortComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Short,java.lang.Boolean>comparator in interface Short2BooleanSortedMappublic Short2BooleanSortedMap subMap(short fromKey, short toKey)
Short2BooleanSortedMapsubMap in interface Short2BooleanSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Short2BooleanSortedMap headMap(short toKey)
Short2BooleanSortedMapheadMap in interface Short2BooleanSortedMaptoKey - where the headMap should endpublic Short2BooleanSortedMap tailMap(short fromKey)
Short2BooleanSortedMaptailMap in interface Short2BooleanSortedMapfromKey - where the TailMap should startpublic short firstShortKey()
Short2BooleanSortedMapfirstShortKey in interface Short2BooleanSortedMappublic short pollFirstShortKey()
Short2BooleanSortedMappollFirstShortKey in interface Short2BooleanSortedMappublic short lastShortKey()
Short2BooleanSortedMaplastShortKey in interface Short2BooleanSortedMappublic short pollLastShortKey()
Short2BooleanSortedMappollLastShortKey in interface Short2BooleanSortedMappublic boolean firstBooleanValue()
Short2BooleanSortedMapfirstBooleanValue in interface Short2BooleanSortedMappublic boolean lastBooleanValue()
Short2BooleanSortedMaplastBooleanValue in interface Short2BooleanSortedMappublic ObjectSet<Short2BooleanMap.Entry> short2BooleanEntrySet()
Short2BooleanMapshort2BooleanEntrySet in interface Short2BooleanMapshort2BooleanEntrySet in class Short2BooleanOpenHashMappublic ShortSet keySet()
keySet in interface java.util.Map<java.lang.Short,java.lang.Boolean>keySet in interface java.util.SortedMap<java.lang.Short,java.lang.Boolean>keySet in interface Short2BooleanMapkeySet in interface Short2BooleanSortedMapkeySet in class Short2BooleanOpenHashMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Boolean>values in interface java.util.SortedMap<java.lang.Short,java.lang.Boolean>values in interface Short2BooleanMapvalues in interface Short2BooleanSortedMapvalues 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 Short2BooleanOpenHashMap