public static class Long2ByteMaps.EmptyMap extends AbstractLong2ByteMap
AbstractLong2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2ByteMap.Entry, Long2ByteMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
byte |
addTo(long key,
byte value)
A Helper method to add a primitives together.
|
byte |
getByte(long key)
A Type Specific get method to reduce boxing/unboxing
|
byte |
getOrDefault(long key,
byte defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
LongSet |
keySet() |
ObjectSet<Long2ByteMap.Entry> |
long2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
byte |
put(long key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
putIfAbsent(long key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
byte |
remLong(long key)
Type Specific remove function to reduce boxing/unboxing
|
byte |
remLongOrDefault(long key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(long key,
byte value)
Type Specific remove function to reduce boxing/unboxing
|
ByteCollection |
values() |
addToAll, computeByte, computeByteIfAbsent, computeByteIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, mergeAllByte, mergeByte, putAll, putAll, putAll, putAllIfAbsent, replace, replace, replaceBytes, replaceBytes, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, put, remove, size, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic byte put(long key,
byte value)
Long2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public byte putIfAbsent(long key,
byte value)
Long2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public byte addTo(long key,
byte value)
Long2ByteMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic byte remLong(long key)
Long2ByteMapkey - the element that should be removedpublic byte remLongOrDefault(long key,
byte defaultValue)
Long2ByteMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(long key,
byte value)
Long2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public byte getByte(long key)
Long2ByteMapkey - the key that is searched forpublic byte getOrDefault(long key,
byte defaultValue)
Long2ByteMapgetOrDefault in interface Long2ByteMapgetOrDefault in class AbstractLong2ByteMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic LongSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Byte>keySet in interface Long2ByteMapkeySet in class AbstractLong2ByteMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Byte>values in interface Long2ByteMapvalues in class AbstractLong2ByteMappublic ObjectSet<Long2ByteMap.Entry> long2ByteEntrySet()
Long2ByteMap