public class Int2BooleanLinkedOpenHashMap extends Int2BooleanOpenHashMap implements Int2BooleanSortedMap
AbstractInt2BooleanMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2BooleanSortedMap.FastSortedSetInt2BooleanMap.Entry, Int2BooleanMap.FastEntrySet| Constructor and Description |
|---|
Int2BooleanLinkedOpenHashMap()
Default Constructor
|
Int2BooleanLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Int2BooleanLinkedOpenHashMap(int[] keys,
boolean[] values)
Helper constructor that allow to create a map from unboxed values
|
Int2BooleanLinkedOpenHashMap(int[] keys,
boolean[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Int2BooleanLinkedOpenHashMap(Int2BooleanMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2BooleanLinkedOpenHashMap(Int2BooleanMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2BooleanLinkedOpenHashMap(java.lang.Integer[] keys,
java.lang.Boolean[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2BooleanLinkedOpenHashMap(java.lang.Integer[] keys,
java.lang.Boolean[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2BooleanLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Int2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Int2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
IntComparator |
comparator() |
boolean |
firstBooleanValue()
A method to get the first Value of a Map.
|
int |
firstIntKey()
A method to get the first Key of a Map.
|
void |
forEach(IntBooleanConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
boolean |
getAndMoveToFirst(int key)
A Specific get method that allows to move teh given key/value int the first index.
|
boolean |
getAndMoveToLast(int key)
A Specific get method that allows to move teh given key/value int the last index.
|
Int2BooleanSortedMap |
headMap(int toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ObjectSet<Int2BooleanMap.Entry> |
int2BooleanEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntSet |
keySet() |
boolean |
lastBooleanValue()
A method to get the last Value of a Map.
|
int |
lastIntKey()
A method to get the last Key of a Map.
|
boolean |
moveToFirst(int key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(int key)
A specific move method to move a given key/value to the last index.
|
int |
pollFirstIntKey()
A method to get and remove the first Key of a Map.
|
int |
pollLastIntKey()
A method to get and remove the last Key of a Map.
|
boolean |
putAndMoveToFirst(int key,
boolean value)
A customized put method that allows you to insert into the first index.
|
boolean |
putAndMoveToLast(int key,
boolean value)
A customized put method that allows you to insert into the last index.
|
Int2BooleanSortedMap |
subMap(int fromKey,
int toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Int2BooleanSortedMap |
tailMap(int 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, remInt, remIntOrDefault, remove, remove, remove, 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, remInt, remIntOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceBooleans, replaceBooleans, setDefaultReturnValuepublic Int2BooleanLinkedOpenHashMap()
public Int2BooleanLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Int2BooleanLinkedOpenHashMap(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 Int2BooleanLinkedOpenHashMap(java.lang.Integer[] 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 Int2BooleanLinkedOpenHashMap(java.lang.Integer[] 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 Int2BooleanLinkedOpenHashMap(int[] 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 Int2BooleanLinkedOpenHashMap(int[] 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 Int2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map)
map - the values that should be present in the mappublic Int2BooleanLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? 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 Int2BooleanLinkedOpenHashMap(Int2BooleanMap map)
map - the values that should be present in the mappublic Int2BooleanLinkedOpenHashMap(Int2BooleanMap 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(int key,
boolean value)
Int2BooleanSortedMapputAndMoveToFirst in interface Int2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean putAndMoveToLast(int key,
boolean value)
Int2BooleanSortedMapputAndMoveToLast in interface Int2BooleanSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(int key)
Int2BooleanSortedMapmoveToFirst in interface Int2BooleanSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(int key)
Int2BooleanSortedMapmoveToLast in interface Int2BooleanSortedMapkey - that should be moved to the first lastpublic boolean getAndMoveToFirst(int key)
Int2BooleanSortedMapgetAndMoveToFirst in interface Int2BooleanSortedMapkey - that is searched forpublic boolean getAndMoveToLast(int key)
Int2BooleanSortedMapgetAndMoveToLast in interface Int2BooleanSortedMapkey - that is searched forpublic IntComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Integer,java.lang.Boolean>comparator in interface Int2BooleanSortedMappublic Int2BooleanSortedMap subMap(int fromKey, int toKey)
Int2BooleanSortedMapsubMap in interface Int2BooleanSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Int2BooleanSortedMap headMap(int toKey)
Int2BooleanSortedMapheadMap in interface Int2BooleanSortedMaptoKey - where the headMap should endpublic Int2BooleanSortedMap tailMap(int fromKey)
Int2BooleanSortedMaptailMap in interface Int2BooleanSortedMapfromKey - where the TailMap should startpublic int firstIntKey()
Int2BooleanSortedMapfirstIntKey in interface Int2BooleanSortedMappublic int pollFirstIntKey()
Int2BooleanSortedMappollFirstIntKey in interface Int2BooleanSortedMappublic int lastIntKey()
Int2BooleanSortedMaplastIntKey in interface Int2BooleanSortedMappublic int pollLastIntKey()
Int2BooleanSortedMappollLastIntKey in interface Int2BooleanSortedMappublic boolean firstBooleanValue()
Int2BooleanSortedMapfirstBooleanValue in interface Int2BooleanSortedMappublic boolean lastBooleanValue()
Int2BooleanSortedMaplastBooleanValue in interface Int2BooleanSortedMappublic ObjectSet<Int2BooleanMap.Entry> int2BooleanEntrySet()
Int2BooleanMapint2BooleanEntrySet in interface Int2BooleanMapint2BooleanEntrySet in class Int2BooleanOpenHashMappublic IntSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Boolean>keySet in interface java.util.SortedMap<java.lang.Integer,java.lang.Boolean>keySet in interface Int2BooleanMapkeySet in interface Int2BooleanSortedMapkeySet in class Int2BooleanOpenHashMappublic BooleanCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Boolean>values in interface java.util.SortedMap<java.lang.Integer,java.lang.Boolean>values in interface Int2BooleanMapvalues in interface Int2BooleanSortedMapvalues in class Int2BooleanOpenHashMappublic void forEach(IntBooleanConsumer action)
Int2BooleanMapforEach in interface Int2BooleanMapforEach in class Int2BooleanOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Integer,java.lang.Boolean>clear in class Int2BooleanOpenHashMap