V - the type of elements maintained by this Collectionpublic class Byte2ObjectLinkedOpenHashMap<V> extends Byte2ObjectOpenHashMap<V> implements Byte2ObjectSortedMap<V>
AbstractByte2ObjectMap.BasicEntry<V>java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2ObjectSortedMap.FastSortedSet<V>Byte2ObjectMap.Entry<V>, Byte2ObjectMap.FastEntrySet<V>| Constructor and Description |
|---|
Byte2ObjectLinkedOpenHashMap()
Default Constructor
|
Byte2ObjectLinkedOpenHashMap(byte[] keys,
V[] values)
Helper constructor that allow to create a map from unboxed values
|
Byte2ObjectLinkedOpenHashMap(java.lang.Byte[] keys,
V[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2ObjectLinkedOpenHashMap(byte[] keys,
V[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Byte2ObjectLinkedOpenHashMap(java.lang.Byte[] keys,
V[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2ObjectLinkedOpenHashMap(Byte2ObjectMap<V> map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2ObjectLinkedOpenHashMap(Byte2ObjectMap<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.
|
Byte2ObjectLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Byte2ObjectLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Byte2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends V> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Byte2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? 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 |
|---|---|
ObjectSet<Byte2ObjectMap.Entry<V>> |
byte2ObjectEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear() |
ByteComparator |
comparator() |
byte |
firstByteKey()
A method to get the first Key of a Map.
|
V |
firstValue()
A method to get the first Value of a Map.
|
void |
forEach(ByteObjectConsumer<V> action)
Type Specific forEach method to reduce boxing/unboxing
|
V |
getAndMoveToFirst(byte key)
A Specific get method that allows to move teh given key/value int the first index.
|
V |
getAndMoveToLast(byte key)
A Specific get method that allows to move teh given key/value int the last index.
|
Byte2ObjectSortedMap<V> |
headMap(byte toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
ByteSet |
keySet() |
byte |
lastByteKey()
A method to get the last Key of a Map.
|
V |
lastValue()
A method to get the last Value of a Map.
|
boolean |
moveToFirst(byte key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(byte key)
A specific move method to move a given key/value to the last index.
|
byte |
pollFirstByteKey()
A method to get and remove the first Key of a Map.
|
byte |
pollLastByteKey()
A method to get and remove the last Key of a Map.
|
V |
putAndMoveToFirst(byte key,
V value)
A customized put method that allows you to insert into the first index.
|
V |
putAndMoveToLast(byte key,
V value)
A customized put method that allows you to insert into the last index.
|
Byte2ObjectSortedMap<V> |
subMap(byte fromKey,
byte toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Byte2ObjectSortedMap<V> |
tailMap(byte 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, remByte, remByteOrDefault, 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, remByte, remByteOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceObjects, replaceObjects, setDefaultReturnValuepublic Byte2ObjectLinkedOpenHashMap()
public Byte2ObjectLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Byte2ObjectLinkedOpenHashMap(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 Byte2ObjectLinkedOpenHashMap(java.lang.Byte[] 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 Byte2ObjectLinkedOpenHashMap(java.lang.Byte[] 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 Byte2ObjectLinkedOpenHashMap(byte[] 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 Byte2ObjectLinkedOpenHashMap(byte[] 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 Byte2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends V> map)
map - the values that should be present in the mappublic Byte2ObjectLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? 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 Byte2ObjectLinkedOpenHashMap(Byte2ObjectMap<V> map)
map - the values that should be present in the mappublic Byte2ObjectLinkedOpenHashMap(Byte2ObjectMap<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(byte key, V value)
Byte2ObjectSortedMapputAndMoveToFirst in interface Byte2ObjectSortedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public V putAndMoveToLast(byte key, V value)
Byte2ObjectSortedMapputAndMoveToLast in interface Byte2ObjectSortedMap<V>key - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(byte key)
Byte2ObjectSortedMapmoveToFirst in interface Byte2ObjectSortedMap<V>key - that should be moved to the first indexpublic boolean moveToLast(byte key)
Byte2ObjectSortedMapmoveToLast in interface Byte2ObjectSortedMap<V>key - that should be moved to the first lastpublic V getAndMoveToFirst(byte key)
Byte2ObjectSortedMapgetAndMoveToFirst in interface Byte2ObjectSortedMap<V>key - that is searched forpublic V getAndMoveToLast(byte key)
Byte2ObjectSortedMapgetAndMoveToLast in interface Byte2ObjectSortedMap<V>key - that is searched forpublic ByteComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Byte,V>comparator in interface Byte2ObjectSortedMap<V>public Byte2ObjectSortedMap<V> subMap(byte fromKey, byte toKey)
Byte2ObjectSortedMapsubMap in interface Byte2ObjectSortedMap<V>fromKey - where the submap should starttoKey - where the subMap should endpublic Byte2ObjectSortedMap<V> headMap(byte toKey)
Byte2ObjectSortedMapheadMap in interface Byte2ObjectSortedMap<V>toKey - where the headMap should endpublic Byte2ObjectSortedMap<V> tailMap(byte fromKey)
Byte2ObjectSortedMaptailMap in interface Byte2ObjectSortedMap<V>fromKey - where the TailMap should startpublic byte firstByteKey()
Byte2ObjectSortedMapfirstByteKey in interface Byte2ObjectSortedMap<V>public byte pollFirstByteKey()
Byte2ObjectSortedMappollFirstByteKey in interface Byte2ObjectSortedMap<V>public byte lastByteKey()
Byte2ObjectSortedMaplastByteKey in interface Byte2ObjectSortedMap<V>public byte pollLastByteKey()
Byte2ObjectSortedMappollLastByteKey in interface Byte2ObjectSortedMap<V>public V firstValue()
Byte2ObjectSortedMapfirstValue in interface Byte2ObjectSortedMap<V>public V lastValue()
Byte2ObjectSortedMaplastValue in interface Byte2ObjectSortedMap<V>public ObjectSet<Byte2ObjectMap.Entry<V>> byte2ObjectEntrySet()
Byte2ObjectMapbyte2ObjectEntrySet in interface Byte2ObjectMap<V>byte2ObjectEntrySet in class Byte2ObjectOpenHashMap<V>public ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,V>keySet in interface java.util.SortedMap<java.lang.Byte,V>keySet in interface Byte2ObjectMap<V>keySet in interface Byte2ObjectSortedMap<V>keySet in class Byte2ObjectOpenHashMap<V>public ObjectCollection<V> values()
values in interface java.util.Map<java.lang.Byte,V>values in interface java.util.SortedMap<java.lang.Byte,V>values in interface Byte2ObjectMap<V>values in interface Byte2ObjectSortedMap<V>values in class Byte2ObjectOpenHashMap<V>public void forEach(ByteObjectConsumer<V> action)
Byte2ObjectMapforEach in interface Byte2ObjectMap<V>forEach in class Byte2ObjectOpenHashMap<V>action - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Byte,V>clear in class Byte2ObjectOpenHashMap<V>