public class Byte2LongLinkedOpenHashMap extends Byte2LongOpenHashMap implements Byte2LongSortedMap
AbstractByte2LongMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2LongSortedMap.FastSortedSetByte2LongMap.Entry, Byte2LongMap.FastEntrySet| 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 |
|---|---|
ObjectSet<Byte2LongMap.Entry> |
byte2LongEntrySet()
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.
|
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.
|
Byte2LongSortedMap |
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.
|
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.
|
Byte2LongSortedMap |
subMap(byte fromKey,
byte toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Byte2LongSortedMap |
tailMap(byte fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
LongCollection |
values() |
addTo, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsKey, containsValue, containsValue, get, getLong, getOrDefault, mergeAllLong, mergeLong, put, putIfAbsent, remByte, remByteOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceLongs, replaceLongs, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeIfAbsent, computeIfPresent, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getDefaultReturnValue, getLong, getOrDefault, getOrDefault, merge, mergeAllLong, mergeLong, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remByte, remByteOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceLongs, replaceLongs, setDefaultReturnValuepublic 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)
Byte2LongSortedMapputAndMoveToFirst in interface Byte2LongSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public long putAndMoveToLast(byte key,
long value)
Byte2LongSortedMapputAndMoveToLast in interface Byte2LongSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(byte key)
Byte2LongSortedMapmoveToFirst in interface Byte2LongSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(byte key)
Byte2LongSortedMapmoveToLast in interface Byte2LongSortedMapkey - that should be moved to the first lastpublic long getAndMoveToFirst(byte key)
Byte2LongSortedMapgetAndMoveToFirst in interface Byte2LongSortedMapkey - that is searched forpublic long getAndMoveToLast(byte key)
Byte2LongSortedMapgetAndMoveToLast in interface Byte2LongSortedMapkey - that is searched forpublic ByteComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Byte,java.lang.Long>comparator in interface Byte2LongSortedMappublic Byte2LongSortedMap subMap(byte fromKey, byte toKey)
Byte2LongSortedMapsubMap in interface Byte2LongSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Byte2LongSortedMap headMap(byte toKey)
Byte2LongSortedMapheadMap in interface Byte2LongSortedMaptoKey - where the headMap should endpublic Byte2LongSortedMap tailMap(byte fromKey)
Byte2LongSortedMaptailMap in interface Byte2LongSortedMapfromKey - where the TailMap should startpublic byte firstByteKey()
Byte2LongSortedMapfirstByteKey in interface Byte2LongSortedMappublic byte pollFirstByteKey()
Byte2LongSortedMappollFirstByteKey in interface Byte2LongSortedMappublic byte lastByteKey()
Byte2LongSortedMaplastByteKey in interface Byte2LongSortedMappublic byte pollLastByteKey()
Byte2LongSortedMappollLastByteKey in interface Byte2LongSortedMappublic long firstLongValue()
Byte2LongSortedMapfirstLongValue in interface Byte2LongSortedMappublic long lastLongValue()
Byte2LongSortedMaplastLongValue in interface Byte2LongSortedMappublic ObjectSet<Byte2LongMap.Entry> byte2LongEntrySet()
Byte2LongMapbyte2LongEntrySet in interface Byte2LongMapbyte2LongEntrySet in class Byte2LongOpenHashMappublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Long>keySet in interface java.util.SortedMap<java.lang.Byte,java.lang.Long>keySet in interface Byte2LongMapkeySet in interface Byte2LongSortedMapkeySet in class Byte2LongOpenHashMappublic LongCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Long>values in interface java.util.SortedMap<java.lang.Byte,java.lang.Long>values in interface Byte2LongMapvalues in interface Byte2LongSortedMapvalues 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 Byte2LongOpenHashMap