public static class Long2CharMaps.EmptyMap extends AbstractLong2CharMap
AbstractLong2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Long2CharMap.BuilderCache, Long2CharMap.Entry, Long2CharMap.FastEntrySet, Long2CharMap.MapBuilder| Constructor and Description |
|---|
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
char |
addTo(long key,
char value)
A Helper method to add a primitives together.
|
char |
computeChar(long key,
LongCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfAbsent(long key,
Long2CharFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfPresent(long key,
LongCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
Long2CharMaps.EmptyMap |
copy()
A Function that does a shallow clone of the Map itself.
|
char |
get(long key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getOrDefault(long key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
LongSet |
keySet() |
ObjectSet<Long2CharMap.Entry> |
long2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
mergeAllChar(Long2CharMap m,
CharCharUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
char |
mergeChar(long key,
char value,
CharCharUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
char |
put(long key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
putIfAbsent(long key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
char |
remove(long key)
Type Specific remove function to reduce boxing/unboxing
|
boolean |
remove(long key,
char value)
Type Specific remove function to reduce boxing/unboxing
|
char |
removeOrDefault(long key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
char |
subFrom(long key,
char value)
A Helper method to subtract from primitive from each other.
|
char |
supplyCharIfAbsent(long key,
CharSupplier valueProvider)
A Supplier based computeIfAbsent function to fill the most used usecase of this function
|
CharCollection |
values() |
addToAll, containsKey, containsValue, entrySet, equals, forEach, get, getDefaultReturnValue, getOrDefault, hashCode, put, putAll, putAll, putAll, putAll, putAllIfAbsent, remove, replace, replace, replaceChars, replaceChars, setDefaultReturnValueclear, containsKey, containsValue, isEmpty, size, toStringbuilder, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, merge, putAll, putAll, putIfAbsent, remove, replace, replace, replaceAll, synchronize, synchronize, unmodifiablepublic char put(long key,
char value)
Long2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(long key,
char value)
Long2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public char addTo(long key,
char value)
Long2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic char subFrom(long key,
char value)
Long2CharMapLong2CharMap.getDefaultReturnValue()
If the fence is reached the element will be automaticall removedkey - that should be subtract fromvalue - that should be subtractpublic char remove(long key)
Long2CharMapkey - the element that should be removedpublic char removeOrDefault(long key,
char defaultValue)
Long2CharMapkey - 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,
char value)
Long2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public char get(long key)
Long2CharMapkey - the key that is searched forpublic char getOrDefault(long key,
char defaultValue)
Long2CharMapgetOrDefault in interface Long2CharMapgetOrDefault in class AbstractLong2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic char computeChar(long key,
LongCharUnaryOperator mappingFunction)
Long2CharMapcomputeChar in interface Long2CharMapcomputeChar in class AbstractLong2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic char computeCharIfAbsent(long key,
Long2CharFunction mappingFunction)
Long2CharMapcomputeCharIfAbsent in interface Long2CharMapcomputeCharIfAbsent in class AbstractLong2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic char computeCharIfPresent(long key,
LongCharUnaryOperator mappingFunction)
Long2CharMapcomputeCharIfPresent in interface Long2CharMapcomputeCharIfPresent in class AbstractLong2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic char supplyCharIfAbsent(long key,
CharSupplier valueProvider)
Long2CharMapsupplyCharIfAbsent in interface Long2CharMapsupplyCharIfAbsent in class AbstractLong2CharMapkey - the key that should be computedvalueProvider - the value if not presentpublic char mergeChar(long key,
char value,
CharCharUnaryOperator mappingFunction)
Long2CharMapmergeChar in interface Long2CharMapmergeChar in class AbstractLong2CharMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllChar(Long2CharMap m, CharCharUnaryOperator mappingFunction)
Long2CharMapmergeAllChar in interface Long2CharMapmergeAllChar in class AbstractLong2CharMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic LongSet keySet()
keySet in interface java.util.Map<java.lang.Long,java.lang.Character>keySet in interface Long2CharMapkeySet in class AbstractLong2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Long,java.lang.Character>values in interface Long2CharMapvalues in class AbstractLong2CharMappublic ObjectSet<Long2CharMap.Entry> long2CharEntrySet()
Long2CharMappublic Long2CharMaps.EmptyMap copy()
Long2CharMapcopy in interface Long2CharMapcopy in class AbstractLong2CharMap