public static class Long2LongMaps.EmptyMap extends AbstractLong2LongMap
AbstractLong2LongMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2LongMap.Entry, Long2LongMap.FastEntrySet| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
long |
addTo(long key,
long value)
A Helper method to add a primitives together.
|
long |
getLong(long key)
A Type Specific get method to reduce boxing/unboxing
|
long |
getOrDefault(long key,
long defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
LongSet |
keySet() |
ObjectSet<Long2LongMap.Entry> |
long2LongEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
long |
put(long key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
putIfAbsent(long key,
long value)
Type Specific method to reduce boxing/unboxing of values
|
long |
remLong(long key)
Type Specific remove function to reduce boxing/unboxing
|
long |
remLongOrDefault(long key,
long defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(long 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, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllapplyAsLongpublic long put(long key,
long value)
Long2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public long putIfAbsent(long key,
long value)
Long2LongMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public long addTo(long key,
long value)
Long2LongMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic long remLong(long key)
Long2LongMapkey - the element that should be removedpublic long remLongOrDefault(long key,
long defaultValue)
Long2LongMapkey - 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,
long value)
Long2LongMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public long getLong(long key)
Long2LongMapkey - the key that is searched forpublic long getOrDefault(long key,
long defaultValue)
Long2LongMapgetOrDefault in interface Long2LongMapgetOrDefault in class AbstractLong2LongMapkey - 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.Long>keySet in interface Long2LongMapkeySet in class AbstractLong2LongMappublic LongCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Long>values in interface Long2LongMapvalues in class AbstractLong2LongMappublic ObjectSet<Long2LongMap.Entry> long2LongEntrySet()
Long2LongMap