public class Long2ByteLinkedOpenCustomHashMap extends Long2ByteOpenCustomHashMap implements Long2ByteSortedMap
AbstractLong2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2ByteSortedMap.FastSortedSetLong2ByteMap.Entry, Long2ByteMap.FastEntrySet| Constructor and Description |
|---|
Long2ByteLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
LongStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
Long2ByteLinkedOpenCustomHashMap(int minCapacity,
LongStrategy strategy)
Constructor that defines the minimum capacity
|
Long2ByteLinkedOpenCustomHashMap(long[] keys,
byte[] values,
float loadFactor,
LongStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Long2ByteLinkedOpenCustomHashMap(java.lang.Long[] keys,
java.lang.Byte[] values,
float loadFactor,
LongStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2ByteLinkedOpenCustomHashMap(long[] keys,
byte[] values,
LongStrategy strategy)
Helper constructor that allow to create a map from unboxed values
|
Long2ByteLinkedOpenCustomHashMap(java.lang.Long[] keys,
java.lang.Byte[] values,
LongStrategy strategy)
Helper constructor that allow to create a map from boxed values (it will unbox them)
|
Long2ByteLinkedOpenCustomHashMap(Long2ByteMap map,
float loadFactor,
LongStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2ByteLinkedOpenCustomHashMap(Long2ByteMap map,
LongStrategy strategy)
A Type Specific Helper function that allows to create a new Map with exactly the same values as the provided map.
|
Long2ByteLinkedOpenCustomHashMap(LongStrategy strategy)
Default Constructor
|
Long2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Byte> map,
float loadFactor,
LongStrategy strategy)
A Helper constructor that allows to create a Map with exactly the same values as the provided map.
|
Long2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Byte> map,
LongStrategy 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() |
LongComparator |
comparator() |
byte |
firstByteValue()
A method to get the first Value of a Map.
|
long |
firstLongKey()
A method to get the first Key of a Map.
|
void |
forEach(LongByteConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
byte |
getAndMoveToFirst(long key)
A Specific get method that allows to move teh given key/value int the first index.
|
byte |
getAndMoveToLast(long key)
A Specific get method that allows to move teh given key/value int the last index.
|
Long2ByteSortedMap |
headMap(long toKey)
A Type Specific HeadMap method to reduce boxing/unboxing
|
LongSet |
keySet() |
byte |
lastByteValue()
A method to get the last Value of a Map.
|
long |
lastLongKey()
A method to get the last Key of a Map.
|
ObjectSet<Long2ByteMap.Entry> |
long2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
boolean |
moveToFirst(long key)
A specific move method to move a given key/value to the first index.
|
boolean |
moveToLast(long key)
A specific move method to move a given key/value to the last index.
|
long |
pollFirstLongKey()
A method to get and remove the first Key of a Map.
|
long |
pollLastLongKey()
A method to get and remove the last Key of a Map.
|
byte |
putAndMoveToFirst(long key,
byte value)
A customized put method that allows you to insert into the first index.
|
byte |
putAndMoveToLast(long key,
byte value)
A customized put method that allows you to insert into the last index.
|
Long2ByteSortedMap |
subMap(long fromKey,
long toKey)
A Type Specific SubMap method to reduce boxing/unboxing
|
Long2ByteSortedMap |
tailMap(long fromKey)
A Type Specific TailMap method to reduce boxing/unboxing
|
ByteCollection |
values() |
addTo, computeByte, computeByteIfAbsent, computeByteIfPresent, containsKey, containsKey, containsValue, containsValue, get, getByte, getOrDefault, mergeAllByte, mergeByte, put, putIfAbsent, remLong, remLongOrDefault, remove, remove, remove, replace, replace, sizeaddToAll, entrySet, equals, getDefaultReturnValue, getOrDefault, hashCode, putAll, putAll, putAll, putAllIfAbsent, replaceBytes, replaceBytes, setDefaultReturnValuefirstKey, headMap, lastKey, subMap, tailMapaddTo, addToAll, compute, computeByte, computeByteIfAbsent, computeByteIfPresent, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, get, getByte, getDefaultReturnValue, getOrDefault, getOrDefault, merge, mergeAllByte, mergeByte, put, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, putIfAbsent, remLong, remLongOrDefault, remove, remove, remove, replace, replace, replace, replace, replaceAll, replaceBytes, replaceBytes, setDefaultReturnValuepublic Long2ByteLinkedOpenCustomHashMap(LongStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Long2ByteLinkedOpenCustomHashMap(int minCapacity,
LongStrategy 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 Long2ByteLinkedOpenCustomHashMap(int minCapacity,
float loadFactor,
LongStrategy 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 Long2ByteLinkedOpenCustomHashMap(java.lang.Long[] keys,
java.lang.Byte[] values,
LongStrategy 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 Long2ByteLinkedOpenCustomHashMap(java.lang.Long[] keys,
java.lang.Byte[] values,
float loadFactor,
LongStrategy 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 Long2ByteLinkedOpenCustomHashMap(long[] keys,
byte[] values,
LongStrategy 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 Long2ByteLinkedOpenCustomHashMap(long[] keys,
byte[] values,
float loadFactor,
LongStrategy 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 Long2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Byte> map,
LongStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Long2ByteLinkedOpenCustomHashMap(java.util.Map<? extends java.lang.Long,? extends java.lang.Byte> map,
float loadFactor,
LongStrategy 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 Long2ByteLinkedOpenCustomHashMap(Long2ByteMap map, LongStrategy strategy)
map - the values that should be present in the mapstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic Long2ByteLinkedOpenCustomHashMap(Long2ByteMap map, float loadFactor, LongStrategy 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 byte putAndMoveToFirst(long key,
byte value)
Long2ByteSortedMapputAndMoveToFirst in interface Long2ByteSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public byte putAndMoveToLast(long key,
byte value)
Long2ByteSortedMapputAndMoveToLast in interface Long2ByteSortedMapkey - the key that should be insertedvalue - the value that should be insertedMap.put(Object, Object)public boolean moveToFirst(long key)
Long2ByteSortedMapmoveToFirst in interface Long2ByteSortedMapkey - that should be moved to the first indexpublic boolean moveToLast(long key)
Long2ByteSortedMapmoveToLast in interface Long2ByteSortedMapkey - that should be moved to the first lastpublic byte getAndMoveToFirst(long key)
Long2ByteSortedMapgetAndMoveToFirst in interface Long2ByteSortedMapkey - that is searched forpublic byte getAndMoveToLast(long key)
Long2ByteSortedMapgetAndMoveToLast in interface Long2ByteSortedMapkey - that is searched forpublic LongComparator comparator()
comparator in interface java.util.SortedMap<java.lang.Long,java.lang.Byte>comparator in interface Long2ByteSortedMappublic Long2ByteSortedMap subMap(long fromKey, long toKey)
Long2ByteSortedMapsubMap in interface Long2ByteSortedMapfromKey - where the submap should starttoKey - where the subMap should endpublic Long2ByteSortedMap headMap(long toKey)
Long2ByteSortedMapheadMap in interface Long2ByteSortedMaptoKey - where the headMap should endpublic Long2ByteSortedMap tailMap(long fromKey)
Long2ByteSortedMaptailMap in interface Long2ByteSortedMapfromKey - where the TailMap should startpublic long firstLongKey()
Long2ByteSortedMapfirstLongKey in interface Long2ByteSortedMappublic long pollFirstLongKey()
Long2ByteSortedMappollFirstLongKey in interface Long2ByteSortedMappublic long lastLongKey()
Long2ByteSortedMaplastLongKey in interface Long2ByteSortedMappublic long pollLastLongKey()
Long2ByteSortedMappollLastLongKey in interface Long2ByteSortedMappublic byte firstByteValue()
Long2ByteSortedMapfirstByteValue in interface Long2ByteSortedMappublic byte lastByteValue()
Long2ByteSortedMaplastByteValue in interface Long2ByteSortedMappublic ObjectSet<Long2ByteMap.Entry> long2ByteEntrySet()
Long2ByteMaplong2ByteEntrySet in interface Long2ByteMaplong2ByteEntrySet in class Long2ByteOpenCustomHashMappublic LongSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Byte>keySet in interface java.util.SortedMap<java.lang.Long,java.lang.Byte>keySet in interface Long2ByteMapkeySet in interface Long2ByteSortedMapkeySet in class Long2ByteOpenCustomHashMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Byte>values in interface java.util.SortedMap<java.lang.Long,java.lang.Byte>values in interface Long2ByteMapvalues in interface Long2ByteSortedMapvalues in class Long2ByteOpenCustomHashMappublic void forEach(LongByteConsumer action)
Long2ByteMapforEach in interface Long2ByteMapforEach in class Long2ByteOpenCustomHashMapaction - processor of the values that are iterator overpublic void clear()
clear in interface java.util.Map<java.lang.Long,java.lang.Byte>clear in class Long2ByteOpenCustomHashMap