public class Byte2LongLinkedOpenHashMap extends Byte2LongOpenHashMap implements Byte2LongOrderedMap
AbstractByte2LongMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2LongOrderedMap.FastOrderedSetByte2LongMap.BuilderCache, Byte2LongMap.Entry, Byte2LongMap.FastEntrySet, Byte2LongMap.MapBuilder| Constructor and Description |
|---|
Byte2LongLinkedOpenHashMap()
Default Constructor
|
Byte2LongLinkedOpenHashMap(byte[] keys,
long[] values)
Helper constructor that allow to create a map from unboxed values
|
Byte2LongLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Long[] values)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2LongLinkedOpenHashMap(byte[] keys,
long[] values,
float loadFactor)
Helper constructor that allow to create a map from unboxed values
|
Byte2LongLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Long[] values,
float loadFactor)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Byte2LongLinkedOpenHashMap(Byte2LongMap map)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2LongLinkedOpenHashMap(Byte2LongMap map,
float loadFactor)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Byte2LongLinkedOpenHashMap(int minCapacity)
Constructor that defines the minimum capacity
|
Byte2LongLinkedOpenHashMap(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
Byte2LongLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Long> map)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Byte2LongLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Long> 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 |
|---|---|
ObjectOrderedSet<Byte2LongMap.Entry> |
byte2LongEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
boolean |
containsValue(long value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
Byte2LongLinkedOpenHashMap |
copy()
A Function that does a shallow clone of the Map itself.
|
byte |
firstByteKey()
A method to get the first Key of a Map.
|
long |
firstLongValue()
A method to get the first Value of a Map.
|
void |
forEach(ByteLongConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
long |
getAndMoveToFirst(byte key)
A Specific get method that allows to move teh given key/value int the first index.
|
long |
getAndMoveToLast(byte key)
A Specific get method that allows to move teh given key/value int the last index.
|
ByteOrderedSet |
keySet() |
byte |
lastByteKey()
A method to get the last Key of a Map.
|
long |
lastLongValue()
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.
|
long |
putAndMoveToFirst(byte key,
long value)
A customized put method that allows you to insert into the first index.
|
long |
putAndMoveToLast(byte key,
long value)
A customized put method that allows you to insert into the last index.
|
LongCollection |
values() |
addTo, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsKey, get, get, getOrDefault, mergeAllLong, mergeLong, put, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, size, subFrom, supplyLongIfAbsent, trimaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, replaceLongs, replaceLongs, setDefaultReturnValuesynchronize, synchronize, unmodifiableaddTo, addToAll, builder, compute, computeIfAbsent, computeIfPresent, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsKey, entrySet, forEach, get, get, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllLong, mergeLong, put, put, putAll, putAll, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remove, remove, remove, remove, removeOrDefault, replace, replace, replace, replace, replaceAll, replaceLongs, replaceLongs, setDefaultReturnValue, subFrom, supplyLongIfAbsentclearAndTrim, trimpublic Byte2LongLinkedOpenHashMap()
public Byte2LongLinkedOpenHashMap(int minCapacity)
minCapacity - the minimum capacity the HashMap is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic Byte2LongLinkedOpenHashMap(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 Byte2LongLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Long[] 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 Byte2LongLinkedOpenHashMap(java.lang.Byte[] keys,
java.lang.Long[] 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 Byte2LongLinkedOpenHashMap(byte[] keys,
long[] 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 Byte2LongLinkedOpenHashMap(byte[] keys,
long[] 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 Byte2LongLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Long> map)
map - the values that should be present in the mappublic Byte2LongLinkedOpenHashMap(java.util.Map<? extends java.lang.Byte,? extends java.lang.Long> 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 Byte2LongLinkedOpenHashMap(Byte2LongMap map)
map - the values that should be present in the mappublic Byte2LongLinkedOpenHashMap(Byte2LongMap 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 long putAndMoveToFirst(byte key,
long value)
Byte2LongOrderedMapputAndMoveToFirst in interface Byte2LongOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public long putAndMoveToLast(byte key,
long value)
Byte2LongOrderedMapputAndMoveToLast in interface Byte2LongOrderedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(byte key)
Byte2LongOrderedMapmoveToFirst in interface Byte2LongOrderedMapkey - that should be moved to the first indexpublic boolean moveToLast(byte key)
Byte2LongOrderedMapmoveToLast in interface Byte2LongOrderedMapkey - that should be moved to the first lastpublic long getAndMoveToFirst(byte key)
Byte2LongOrderedMapgetAndMoveToFirst in interface Byte2LongOrderedMapkey - that is searched forpublic long getAndMoveToLast(byte key)
Byte2LongOrderedMapgetAndMoveToLast in interface Byte2LongOrderedMapkey - that is searched forpublic boolean containsValue(long value)
Byte2LongMapcontainsValue in interface Byte2LongMapcontainsValue in class Byte2LongOpenHashMapvalue - element that is searched for@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Byte,java.lang.Long>containsValue in interface Byte2LongMapcontainsValue in class Byte2LongOpenHashMapvalue - that is searched for.Map.containsValue(Object)public Byte2LongLinkedOpenHashMap copy()
Byte2LongMapcopy in interface Byte2LongMapcopy in interface Byte2LongOrderedMapcopy in class Byte2LongOpenHashMappublic byte firstByteKey()
Byte2LongOrderedMapfirstByteKey in interface Byte2LongOrderedMappublic byte pollFirstByteKey()
Byte2LongOrderedMappollFirstByteKey in interface Byte2LongOrderedMappublic byte lastByteKey()
Byte2LongOrderedMaplastByteKey in interface Byte2LongOrderedMappublic byte pollLastByteKey()
Byte2LongOrderedMappollLastByteKey in interface Byte2LongOrderedMappublic long firstLongValue()
Byte2LongOrderedMapfirstLongValue in interface Byte2LongOrderedMappublic long lastLongValue()
Byte2LongOrderedMaplastLongValue in interface Byte2LongOrderedMappublic ObjectOrderedSet<Byte2LongMap.Entry> byte2LongEntrySet()
Byte2LongMapbyte2LongEntrySet in interface Byte2LongMapbyte2LongEntrySet in interface Byte2LongOrderedMapbyte2LongEntrySet in class Byte2LongOpenHashMappublic ByteOrderedSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Long>keySet in interface Byte2LongMapkeySet in interface Byte2LongOrderedMapkeySet in class Byte2LongOpenHashMappublic LongCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Long>values in interface Byte2LongMapvalues in class Byte2LongOpenHashMappublic void forEach(ByteLongConsumer action)
Byte2LongMapforEach in interface Byte2LongMapforEach in class Byte2LongOpenHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Long>clear in class Byte2LongOpenHashMappublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class Byte2LongOpenHashMapsize - the amount of elements that should be allowed