public static class Byte2LongMaps.UnmodifyableMap extends AbstractByte2LongMap implements Byte2LongMap
AbstractByte2LongMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Byte2LongMap.Entry, Byte2LongMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
long |
addTo(byte key,
long value)
A Helper method to add a primitives together.
|
ObjectSet<Byte2LongMap.Entry> |
byte2LongEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
long |
getLong(byte key)
A Type Specific get method to reduce boxing/unboxing
|
long |
getOrDefault(byte key,
long defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ByteSet |
keySet() |
long |
put(byte key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
putIfAbsent(byte key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
remByte(byte key)
Type Specific remove function to reduce boxing/unboxing
|
long |
remByteOrDefault(byte key,
long defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(byte key,
long value)
Type Specific remove function to reduce boxing/unboxing
|
LongCollection |
values() |
addToAll, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllLong, mergeLong, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceLongs, replaceLongs, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringaddToAll, compute, computeIfAbsent, computeIfPresent, computeLong, computeLongIfAbsent, computeLongIfPresent, containsKey, containsKey, containsValue, containsValue, entrySet, forEach, forEach, get, getDefaultReturnValue, getOrDefault, merge, mergeAllLong, mergeLong, put, putAll, putAll, putAll, putAllIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replaceAll, replaceLongs, replaceLongs, setDefaultReturnValuepublic long put(byte key,
long value)
Byte2LongMapput in interface Byte2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public long putIfAbsent(byte key,
long value)
Byte2LongMapputIfAbsent in interface Byte2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public long addTo(byte key,
long value)
Byte2LongMapaddTo in interface Byte2LongMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic long remByte(byte key)
Byte2LongMapremByte in interface Byte2LongMapkey - the element that should be removedpublic long remByteOrDefault(byte key,
long defaultValue)
Byte2LongMapremByteOrDefault in interface Byte2LongMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(byte key,
long value)
Byte2LongMapremove in interface Byte2LongMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public long getLong(byte key)
Byte2LongMapgetLong in interface Byte2LongFunctiongetLong in interface Byte2LongMapkey - the key that is searched forpublic long getOrDefault(byte key,
long defaultValue)
Byte2LongMapgetOrDefault in interface Byte2LongMapgetOrDefault in class AbstractByte2LongMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic ByteSet keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Long>keySet in interface Byte2LongMapkeySet in class AbstractByte2LongMappublic LongCollection values()
values in interface java.util.Map<java.lang.Byte,java.lang.Long>values in interface Byte2LongMapvalues in class AbstractByte2LongMappublic ObjectSet<Byte2LongMap.Entry> byte2LongEntrySet()
Byte2LongMapbyte2LongEntrySet in interface Byte2LongMap