public static class Short2CharMaps.SynchronizedMap extends AbstractShort2CharMap implements Short2CharMap
AbstractShort2CharMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Short2CharMap.Entry, Short2CharMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
char |
addTo(short key,
char value)
A Helper method to add a primitives together.
|
void |
addToAll(Short2CharMap m)
A Helper method to bulk add primitives together.
|
void |
clear()
Deprecated.
|
java.lang.Character |
compute(java.lang.Short key,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Character,? extends java.lang.Character> mappingFunction)
Deprecated.
|
char |
computeChar(short key,
ShortCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfAbsent(short key,
Short2CharFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
char |
computeCharIfPresent(short key,
ShortCharUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
java.lang.Character |
computeIfAbsent(java.lang.Short key,
java.util.function.Function<? super java.lang.Short,? extends java.lang.Character> mappingFunction)
Deprecated.
|
java.lang.Character |
computeIfPresent(java.lang.Short key,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Character,? extends java.lang.Character> mappingFunction)
Deprecated.
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsKey(short key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(char value)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
void |
forEach(java.util.function.BiConsumer<? super java.lang.Short,? super java.lang.Character> action)
Deprecated.
|
void |
forEach(ShortCharConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Character |
get(java.lang.Object key)
Deprecated.
|
char |
getChar(short key)
A Type Specific get method to reduce boxing/unboxing
|
char |
getDefaultReturnValue()
Method to see what the default return value is.
|
java.lang.Character |
getOrDefault(java.lang.Object key,
java.lang.Character defaultValue)
Deprecated.
|
char |
getOrDefault(short key,
char defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
ShortSet |
keySet() |
java.lang.Character |
merge(java.lang.Short key,
java.lang.Character value,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Character,? extends java.lang.Character> mappingFunction)
Deprecated.
|
void |
mergeAllChar(Short2CharMap m,
CharCharUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
char |
mergeChar(short key,
char value,
CharCharUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
char |
put(short key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Character |
put(java.lang.Short key,
java.lang.Character value)
Deprecated.
|
void |
putAll(java.util.Map<? extends java.lang.Short,? extends java.lang.Character> m) |
void |
putAll(short[] keys,
char[] values,
int offset,
int size)
Type Specific array method to bulk add elements into a map without creating a wrapper and increasing performances
|
void |
putAll(Short2CharMap m)
Type Specific function for the bull putting of values
|
void |
putAllIfAbsent(Short2CharMap m)
Type-Specific bulk put method put elements into the map if not present.
|
char |
putIfAbsent(short key,
char value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Character |
putIfAbsent(java.lang.Short key,
java.lang.Character value)
Deprecated.
|
java.lang.Character |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
boolean |
remove(short key,
char value)
Type Specific remove function to reduce boxing/unboxing
|
char |
remShort(short key)
Type Specific remove function to reduce boxing/unboxing
|
char |
remShortOrDefault(short key,
char defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
char |
replace(short key,
char value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
java.lang.Character |
replace(java.lang.Short key,
java.lang.Character value)
Deprecated.
|
boolean |
replace(java.lang.Short key,
java.lang.Character oldValue,
java.lang.Character newValue)
Deprecated.
|
boolean |
replace(short key,
char oldValue,
char newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Character,? extends java.lang.Character> mappingFunction)
Deprecated.
|
void |
replaceChars(Short2CharMap m)
Type-Specific bulk replace method.
|
void |
replaceChars(ShortCharUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractShort2CharMap |
setDefaultReturnValue(char v)
Method to define the default return value if a requested key isn't present
|
ObjectSet<Short2CharMap.Entry> |
short2CharEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
int |
size() |
CharCollection |
values() |
entrySet, equals, hashCodeentrySet, putAllpublic char getDefaultReturnValue()
Short2CharMapgetDefaultReturnValue in interface Short2CharMapgetDefaultReturnValue in class AbstractShort2CharMappublic AbstractShort2CharMap setDefaultReturnValue(char v)
Short2CharMapsetDefaultReturnValue in interface Short2CharMapsetDefaultReturnValue in class AbstractShort2CharMapv - value that should be the default return valuepublic char put(short key,
char value)
Short2CharMapput in interface Short2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public char putIfAbsent(short key,
char value)
Short2CharMapputIfAbsent in interface Short2CharMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Short2CharMap m)
Short2CharMapputAllIfAbsent in interface Short2CharMapputAllIfAbsent in class AbstractShort2CharMapm - elements that should be added if not present.public char addTo(short key,
char value)
Short2CharMapaddTo in interface Short2CharMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic void addToAll(Short2CharMap m)
Short2CharMapaddToAll in interface Short2CharMapaddToAll in class AbstractShort2CharMapm - the values that should be added/insertedpublic void putAll(Short2CharMap m)
Short2CharMapputAll in interface Short2CharMapputAll in class AbstractShort2CharMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Short,? extends java.lang.Character> m)
putAll in interface java.util.Map<java.lang.Short,java.lang.Character>putAll in class AbstractShort2CharMappublic void putAll(short[] keys,
char[] values,
int offset,
int size)
Short2CharMapputAll in interface Short2CharMapputAll in class AbstractShort2CharMapkeys - the keys that should be addedvalues - the values that should be addedoffset - where the to start in the arraysize - how many elements should be addedMap.putAll(Map)public boolean containsKey(short key)
Short2CharMapcontainsKey in interface Short2CharMapcontainsKey in class AbstractShort2CharMapkey - element that is searched forpublic boolean containsValue(char value)
Short2CharMapcontainsValue in interface Short2CharMapcontainsValue in class AbstractShort2CharMapvalue - element that is searched forpublic char getChar(short key)
Short2CharMapgetChar in interface Short2CharFunctiongetChar in interface Short2CharMapkey - the key that is searched forpublic char remShort(short key)
Short2CharMapremShort in interface Short2CharMapkey - the element that should be removedpublic char remShortOrDefault(short key,
char defaultValue)
Short2CharMapremShortOrDefault in interface Short2CharMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(short key,
char value)
Short2CharMapremove in interface Short2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(short key,
char oldValue,
char newValue)
Short2CharMapreplace in interface Short2CharMapreplace in class AbstractShort2CharMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public char replace(short key,
char value)
Short2CharMapreplace in interface Short2CharMapreplace in class AbstractShort2CharMapkey - the element that should be searched forvalue - the value to replace with.public void replaceChars(Short2CharMap m)
Short2CharMapreplaceChars in interface Short2CharMapreplaceChars in class AbstractShort2CharMapm - elements that should be replaced.public void replaceChars(ShortCharUnaryOperator mappingFunction)
Short2CharMapreplaceChars in interface Short2CharMapreplaceChars in class AbstractShort2CharMapmappingFunction - operation to replace all valuespublic char computeChar(short key,
ShortCharUnaryOperator mappingFunction)
Short2CharMapcomputeChar in interface Short2CharMapcomputeChar in class AbstractShort2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic char computeCharIfAbsent(short key,
Short2CharFunction mappingFunction)
Short2CharMapcomputeCharIfAbsent in interface Short2CharMapcomputeCharIfAbsent in class AbstractShort2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic char computeCharIfPresent(short key,
ShortCharUnaryOperator mappingFunction)
Short2CharMapcomputeCharIfPresent in interface Short2CharMapcomputeCharIfPresent in class AbstractShort2CharMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic char mergeChar(short key,
char value,
CharCharUnaryOperator mappingFunction)
Short2CharMapmergeChar in interface Short2CharMapmergeChar in class AbstractShort2CharMapkey - 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(Short2CharMap m, CharCharUnaryOperator mappingFunction)
Short2CharMapmergeAllChar in interface Short2CharMapmergeAllChar in class AbstractShort2CharMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic char getOrDefault(short key,
char defaultValue)
Short2CharMapgetOrDefault in interface Short2CharMapgetOrDefault in class AbstractShort2CharMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(ShortCharConsumer action)
Short2CharMapforEach in interface Short2CharMapforEach in class AbstractShort2CharMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Short,java.lang.Character>size in class java.util.AbstractMap<java.lang.Short,java.lang.Character>public ShortSet keySet()
keySet in interface java.util.Map<java.lang.Short,java.lang.Character>keySet in interface Short2CharMapkeySet in class AbstractShort2CharMappublic CharCollection values()
values in interface java.util.Map<java.lang.Short,java.lang.Character>values in interface Short2CharMapvalues in class AbstractShort2CharMappublic ObjectSet<Short2CharMap.Entry> short2CharEntrySet()
Short2CharMapshort2CharEntrySet in interface Short2CharMap@Deprecated public java.lang.Character get(java.lang.Object key)
get in interface java.util.Map<java.lang.Short,java.lang.Character>get in interface Short2CharMapget in class AbstractShort2CharMap@Deprecated
public java.lang.Character getOrDefault(java.lang.Object key,
java.lang.Character defaultValue)
getOrDefault in interface java.util.Map<java.lang.Short,java.lang.Character>getOrDefault in interface Short2CharMapgetOrDefault in class AbstractShort2CharMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Short,java.lang.Character>containsValue in interface Short2CharMapcontainsValue in class java.util.AbstractMap<java.lang.Short,java.lang.Character>value - that is searched for.Map.containsValue(Object)@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Short,java.lang.Character>containsKey in interface Short2CharMapcontainsKey in class java.util.AbstractMap<java.lang.Short,java.lang.Character>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Character put(java.lang.Short key,
java.lang.Character value)
put in interface java.util.Map<java.lang.Short,java.lang.Character>put in interface Short2CharMapput in class java.util.AbstractMap<java.lang.Short,java.lang.Character>@Deprecated public java.lang.Character remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Short,java.lang.Character>remove in interface Short2CharMapremove in class java.util.AbstractMap<java.lang.Short,java.lang.Character>key - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Short,java.lang.Character>clear in class java.util.AbstractMap<java.lang.Short,java.lang.Character>@Deprecated
public java.lang.Character putIfAbsent(java.lang.Short key,
java.lang.Character value)
putIfAbsent in interface java.util.Map<java.lang.Short,java.lang.Character>putIfAbsent in interface Short2CharMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Short,java.lang.Character>remove in interface Short2CharMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Short key,
java.lang.Character oldValue,
java.lang.Character newValue)
replace in interface java.util.Map<java.lang.Short,java.lang.Character>replace in interface Short2CharMap@Deprecated
public java.lang.Character replace(java.lang.Short key,
java.lang.Character value)
replace in interface java.util.Map<java.lang.Short,java.lang.Character>replace in interface Short2CharMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Character,? extends java.lang.Character> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Short,java.lang.Character>replaceAll in interface Short2CharMap@Deprecated
public java.lang.Character compute(java.lang.Short key,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Character,? extends java.lang.Character> mappingFunction)
compute in interface java.util.Map<java.lang.Short,java.lang.Character>compute in interface Short2CharMap@Deprecated
public java.lang.Character computeIfAbsent(java.lang.Short key,
java.util.function.Function<? super java.lang.Short,? extends java.lang.Character> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Short,java.lang.Character>computeIfAbsent in interface Short2CharMap@Deprecated
public java.lang.Character computeIfPresent(java.lang.Short key,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Character,? extends java.lang.Character> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Short,java.lang.Character>computeIfPresent in interface Short2CharMap@Deprecated
public java.lang.Character merge(java.lang.Short key,
java.lang.Character value,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Character,? extends java.lang.Character> mappingFunction)
merge in interface java.util.Map<java.lang.Short,java.lang.Character>merge in interface Short2CharMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Short,? super java.lang.Character> action)
forEach in interface java.util.Map<java.lang.Short,java.lang.Character>forEach in interface Short2CharMap