public class Int2IntLinkedOpenCustomHashMap extends Int2IntOpenCustomHashMap implements Int2IntSortedMap
AbstractInt2IntMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2IntSortedMap.FastSortedSetInt2IntMap.Entry, Int2IntMap.FastEntrySet| Constructor and Description |
|---|
Int2IntLinkedOpenCustomHashMap(int[] keys,
int[] values,
float loadFactor,
IntStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Int2IntLinkedOpenCustomHashMap(int[] keys,
int[] values,
IntStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Int2IntLinkedOpenCustomHashMap(Int2IntMap map,
float loadFactor,
IntStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2IntLinkedOpenCustomHashMap(Int2IntMap map,
IntStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2IntLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Integer[] values,
float loadFactor,
IntStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2IntLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Integer[] values,
IntStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2IntLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
IntStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Int2IntLinkedOpenCustomHashMap(int minCapacity,
IntStrategy strategy)
Constructor that defines the minimum capacity
|
Int2IntLinkedOpenCustomHashMap(IntStrategy strategy)
Default Constructor
|
Int2IntLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Integer> map,
float loadFactor,
IntStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Int2IntLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Integer> map,
IntStrategy strategy)
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() |
int |
firstIntKey()
A method to get the first Key of a Map.
|
int |
firstIntValue()
A method to get the first Value of a Map.
|
void |
forEach(IntIntConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
int |
getAndMoveToFirst(int key)
A Specific get method that allows to move teh given key/value int the first index.
|
int |
getAndMoveToLast(int key)
A Specific get method that allows to move teh given key/value int the last index.
|
Int2IntSortedMap |
headMap(int toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ObjectSet<Int2IntMap.Entry> |
int2IntEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntSet |
keySet() |
int |
lastIntKey()
A method to get the last Key of a Map.
|
int |
lastIntValue()
A method to get the last Value 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.
|
int |
putAndMoveToFirst(int key,
int value)
A customized put method that allows you to insert into the first index.
|
int |
putAndMoveToLast(int key,
int value)
A customized put method that allows you to insert into the last index.
|
Int2IntSortedMap |
subMap(int fromKey,
int toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Int2IntSortedMap |
tailMap(int fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
IntCollection |
values() |
addTo, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, get, getInt, getOrDefault, mergeAllInt, mergeInt, put, putIfAbsent, remInt, remIntOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceInts, replaceInts, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeInt, computeIntIfAbsent, computeIntIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getInt, getOrDefault, getOrDefault, merge, mergeAllInt, mergeInt, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remInt, remIntOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceInts, replaceInts, setDefaultReturnValueapplyAsIntpublic Int2IntLinkedOpenCustomHashMap(IntStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Int2IntLinkedOpenCustomHashMap(int minCapacity,
IntStrategy 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 Int2IntLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
IntStrategy 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 Int2IntLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Integer[] values,
IntStrategy 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 Int2IntLinkedOpenCustomHashMap(java.lang.Integer[] keys,
java.lang.Integer[] values,
float loadFactor,
IntStrategy 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 Int2IntLinkedOpenCustomHashMap(int[] keys,
int[] values,
IntStrategy 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 Int2IntLinkedOpenCustomHashMap(int[] keys,
int[] values,
float loadFactor,
IntStrategy 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 Int2IntLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Integer> map,
IntStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Int2IntLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Integer> map,
float loadFactor,
IntStrategy 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 Int2IntLinkedOpenCustomHashMap(Int2IntMap map, IntStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Int2IntLinkedOpenCustomHashMap(Int2IntMap map, float loadFactor, IntStrategy 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 int putAndMoveToFirst(int key,
int value)
Int2IntSortedMapputAndMoveToFirst in interface Int2IntSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public int putAndMoveToLast(int key,
int value)
Int2IntSortedMapputAndMoveToLast in interface Int2IntSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(int key)
Int2IntSortedMapmoveToFirst in interface Int2IntSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(int key)
Int2IntSortedMapmoveToLast in interface Int2IntSortedMapkey - that should be moved to the first lastpublic int getAndMoveToFirst(int key)
Int2IntSortedMapgetAndMoveToFirst in interface Int2IntSortedMapkey - that is searched forpublic int getAndMoveToLast(int key)
Int2IntSortedMapgetAndMoveToLast in interface Int2IntSortedMapkey - that is searched forpublic IntComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>comparator in interface Int2IntSortedMappublic Int2IntSortedMap subMap(int fromKey, int toKey)
Int2IntSortedMapsubMap in interface Int2IntSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Int2IntSortedMap headMap(int toKey)
Int2IntSortedMapheadMap in interface Int2IntSortedMaptoKey - where the headMap should endpublic Int2IntSortedMap tailMap(int fromKey)
Int2IntSortedMaptailMap in interface Int2IntSortedMapfromKey - where the TailMap should startpublic int firstIntKey()
Int2IntSortedMapfirstIntKey in interface Int2IntSortedMappublic int pollFirstIntKey()
Int2IntSortedMappollFirstIntKey in interface Int2IntSortedMappublic int lastIntKey()
Int2IntSortedMaplastIntKey in interface Int2IntSortedMappublic int pollLastIntKey()
Int2IntSortedMappollLastIntKey in interface Int2IntSortedMappublic int firstIntValue()
Int2IntSortedMapfirstIntValue in interface Int2IntSortedMappublic int lastIntValue()
Int2IntSortedMaplastIntValue in interface Int2IntSortedMappublic ObjectSet<Int2IntMap.Entry> int2IntEntrySet()
Int2IntMapint2IntEntrySet in interface Int2IntMapint2IntEntrySet in class Int2IntOpenCustomHashMappublic IntSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Integer>keySet in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>keySet in interface Int2IntMapkeySet in interface Int2IntSortedMapkeySet in class Int2IntOpenCustomHashMappublic IntCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Integer>values in interface java.util.SortedMap<java.lang.Integer,java.lang.Integer>values in interface Int2IntMapvalues in interface Int2IntSortedMapvalues in class Int2IntOpenCustomHashMappublic void forEach(IntIntConsumer action)
Int2IntMapforEach in interface Int2IntMapforEach in class Int2IntOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Integer,java.lang.Integer>clear in class Int2IntOpenCustomHashMap