V - the type of elements maintained by this Collectionpublic class Int2ObjectLinkedOpenHashMap<V> extends Int2ObjectOpenHashMap<V> implements Int2ObjectSortedMap<V>
AbstractInt2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2ObjectSortedMap.FastSortedSet<V>Int2ObjectMap.Entry<V>, Int2ObjectMap.FastEntrySet<V>| Constructor and Description |
|---|
Int2ObjectLinkedOpenHashMap()
Default Constructor
|
Int2ObjectLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Int2ObjectLinkedOpenHashMap(int[] keys,
V[] values)
Helper constructor that allow to create a map from unboxed values
|
Int2ObjectLinkedOpenHashMap(int[] keys,
V[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Int2ObjectLinkedOpenHashMap(Int2ObjectMap<V> map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2ObjectLinkedOpenHashMap(Int2ObjectMap<V> map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Int2ObjectLinkedOpenHashMap(java.lang.Integer[] keys,
V[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2ObjectLinkedOpenHashMap(java.lang.Integer[] keys,
V[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Int2ObjectLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Int2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends V> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Int2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends V> 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() |
int |
firstIntKey()
A method to get the first Key of a Map.
|
V |
firstValue()
A method to get the first Value of a Map.
|
void |
forEach(IntObjectConsumer<V> action)
Type Specific forEach method to reduce boxing/unboxing
|
V |
getAndMoveToFirst(int key)
A Specific get method that allows to move teh given key/value int the first index.
|
V |
getAndMoveToLast(int key)
A Specific get method that allows to move teh given key/value int the last index.
|
Int2ObjectSortedMap<V> |
headMap(int toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ObjectSet<Int2ObjectMap.Entry<V>> |
int2ObjectEntrySet()
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.
|
V |
lastValue()
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.
|
V |
putAndMoveToFirst(int key,
V value)
A customized put method that allows you to insert into the first index.
|
V |
putAndMoveToLast(int key,
V value)
A customized put method that allows you to insert into the last index.
|
Int2ObjectSortedMap<V> |
subMap(int fromKey,
int toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Int2ObjectSortedMap<V> |
tailMap(int fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
ObjectCollection<V> |
values() |
compute, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, get, getObject, getOrDefault, merge, mergeAll, put, putIfAbsent, remInt, remIntOrDefault, remove, remove, remove, replace, replace, sizeentrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceObjects, replaceObjects, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapcompute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, containsKey, containsKey, entrySet, forEach, get, getDefaultReturnValue, getObject, getOrDefault, getOrDefault, merge, merge, mergeAll, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remInt, remIntOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceObjects, replaceObjects, setDefaultReturnValuecontainsValue, equals, hashCode, isEmpty, putAll, sizeapplypublic Int2ObjectLinkedOpenHashMap()
public Int2ObjectLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Int2ObjectLinkedOpenHashMap(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 Int2ObjectLinkedOpenHashMap(java.lang.Integer[] keys,
V[] 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 Int2ObjectLinkedOpenHashMap(java.lang.Integer[] keys,
V[] 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 Int2ObjectLinkedOpenHashMap(int[] keys,
V[] 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 Int2ObjectLinkedOpenHashMap(int[] keys,
V[] 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 Int2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends V> map)
map - the values that should be present in the mappublic Int2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Integer,? extends V> 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 Int2ObjectLinkedOpenHashMap(Int2ObjectMap<V> map)
map - the values that should be present in the mappublic Int2ObjectLinkedOpenHashMap(Int2ObjectMap<V> 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 V putAndMoveToFirst(int key, V value)
Int2ObjectSortedMapputAndMoveToFirst in interface Int2ObjectSortedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public V putAndMoveToLast(int key, V value)
Int2ObjectSortedMapputAndMoveToLast in interface Int2ObjectSortedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(int key)
Int2ObjectSortedMapmoveToFirst in interface Int2ObjectSortedMap<V>key - that should be moved to the first indexpublic boolean moveToLast(int key)
Int2ObjectSortedMapmoveToLast in interface Int2ObjectSortedMap<V>key - that should be moved to the first lastpublic V getAndMoveToFirst(int key)
Int2ObjectSortedMapgetAndMoveToFirst in interface Int2ObjectSortedMap<V>key - that is searched forpublic V getAndMoveToLast(int key)
Int2ObjectSortedMapgetAndMoveToLast in interface Int2ObjectSortedMap<V>key - that is searched forpublic IntComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Integer,V>comparator in interface Int2ObjectSortedMap<V>public Int2ObjectSortedMap<V> subMap(int fromKey, int toKey)
Int2ObjectSortedMapsubMap in interface Int2ObjectSortedMap<V>fromKey - where the submap should starttoKey - where the subMap should endpublic Int2ObjectSortedMap<V> headMap(int toKey)
Int2ObjectSortedMapheadMap in interface Int2ObjectSortedMap<V>toKey - where the headMap should endpublic Int2ObjectSortedMap<V> tailMap(int fromKey)
Int2ObjectSortedMaptailMap in interface Int2ObjectSortedMap<V>fromKey - where the TailMap should startpublic int firstIntKey()
Int2ObjectSortedMapfirstIntKey in interface Int2ObjectSortedMap<V>public int pollFirstIntKey()
Int2ObjectSortedMappollFirstIntKey in interface Int2ObjectSortedMap<V>public int lastIntKey()
Int2ObjectSortedMaplastIntKey in interface Int2ObjectSortedMap<V>public int pollLastIntKey()
Int2ObjectSortedMappollLastIntKey in interface Int2ObjectSortedMap<V>public V firstValue()
Int2ObjectSortedMapfirstValue in interface Int2ObjectSortedMap<V>public V lastValue()
Int2ObjectSortedMaplastValue in interface Int2ObjectSortedMap<V>public ObjectSet<Int2ObjectMap.Entry<V>> int2ObjectEntrySet()
Int2ObjectMapint2ObjectEntrySet in interface Int2ObjectMap<V>int2ObjectEntrySet in class Int2ObjectOpenHashMap<V>public IntSet keySet()
keySet in interface java.util.Map<java.lang.Integer,V>keySet in interface java.util.SortedMap<java.lang.Integer,V>keySet in interface Int2ObjectMap<V>keySet in interface Int2ObjectSortedMap<V>keySet in class Int2ObjectOpenHashMap<V>public ObjectCollection<V> values()
values in interface java.util.Map<java.lang.Integer,V>values in interface java.util.SortedMap<java.lang.Integer,V>values in interface Int2ObjectMap<V>values in interface Int2ObjectSortedMap<V>values in class Int2ObjectOpenHashMap<V>public void forEach(IntObjectConsumer<V> action)
Int2ObjectMapforEach in interface Int2ObjectMap<V>forEach in class Int2ObjectOpenHashMap<V>action - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Integer,V>clear in class Int2ObjectOpenHashMap<V>