public static class Char2ShortMaps.SynchronizedMap extends AbstractChar2ShortMap implements Char2ShortMap
AbstractChar2ShortMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Char2ShortMap.Entry, Char2ShortMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
short |
addTo(char key,
short value)
A Helper method to add a primitives together.
|
void |
addToAll(Char2ShortMap m)
A Helper method to bulk add primitives together.
|
ObjectSet<Char2ShortMap.Entry> |
char2ShortEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
void |
clear()
Deprecated.
|
java.lang.Short |
compute(java.lang.Character key,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
Deprecated.
|
java.lang.Short |
computeIfAbsent(java.lang.Character key,
java.util.function.Function<? super java.lang.Character,? extends java.lang.Short> mappingFunction)
Deprecated.
|
java.lang.Short |
computeIfPresent(java.lang.Character key,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
Deprecated.
|
short |
computeShort(char key,
CharShortUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
short |
computeShortIfAbsent(char key,
Char2ShortFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
short |
computeShortIfPresent(char key,
CharShortUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
boolean |
containsKey(char key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(java.lang.Object value)
Deprecated.
|
boolean |
containsValue(short value)
Type Specific method to reduce boxing/unboxing of values
|
void |
forEach(java.util.function.BiConsumer<? super java.lang.Character,? super java.lang.Short> action)
Deprecated.
|
void |
forEach(CharShortConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Short |
get(java.lang.Object key)
Deprecated.
|
short |
getDefaultReturnValue()
Method to see what the default return value is.
|
short |
getOrDefault(char key,
short defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Short |
getOrDefault(java.lang.Object key,
java.lang.Short defaultValue)
Deprecated.
|
short |
getShort(char key)
A Type Specific get method to reduce boxing/unboxing
|
CharSet |
keySet() |
java.lang.Short |
merge(java.lang.Character key,
java.lang.Short value,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
Deprecated.
|
void |
mergeAllShort(Char2ShortMap m,
ShortShortUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
short |
mergeShort(char key,
short value,
ShortShortUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
java.lang.Short |
put(java.lang.Character key,
java.lang.Short value)
Deprecated.
|
short |
put(char key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
void |
putAll(char[] keys,
short[] 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(Char2ShortMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Character,? extends java.lang.Short> m) |
void |
putAllIfAbsent(Char2ShortMap m)
Type-Specific bulk put method put elements into the map if not present.
|
java.lang.Short |
putIfAbsent(java.lang.Character key,
java.lang.Short value)
Deprecated.
|
short |
putIfAbsent(char key,
short value)
Type Specific method to reduce boxing/unboxing of values
|
short |
remChar(char key)
Type Specific remove function to reduce boxing/unboxing
|
short |
remCharOrDefault(char key,
short defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(char key,
short value)
Type Specific remove function to reduce boxing/unboxing
|
java.lang.Short |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
java.lang.Short |
replace(java.lang.Character key,
java.lang.Short value)
Deprecated.
|
boolean |
replace(java.lang.Character key,
java.lang.Short oldValue,
java.lang.Short newValue)
Deprecated.
|
short |
replace(char key,
short value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(char key,
short oldValue,
short newValue)
A Type Specific replace method to replace an existing value
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
Deprecated.
|
void |
replaceShorts(Char2ShortMap m)
Type-Specific bulk replace method.
|
void |
replaceShorts(CharShortUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractChar2ShortMap |
setDefaultReturnValue(short v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
ShortCollection |
values() |
entrySet, equals, hashCodeentrySet, putAllpublic short getDefaultReturnValue()
Char2ShortMapgetDefaultReturnValue in interface Char2ShortMapgetDefaultReturnValue in class AbstractChar2ShortMappublic AbstractChar2ShortMap setDefaultReturnValue(short v)
Char2ShortMapsetDefaultReturnValue in interface Char2ShortMapsetDefaultReturnValue in class AbstractChar2ShortMapv - value that should be the default return valuepublic short put(char key,
short value)
Char2ShortMapput in interface Char2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public short putIfAbsent(char key,
short value)
Char2ShortMapputIfAbsent in interface Char2ShortMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Char2ShortMap m)
Char2ShortMapputAllIfAbsent in interface Char2ShortMapputAllIfAbsent in class AbstractChar2ShortMapm - elements that should be added if not present.public short addTo(char key,
short value)
Char2ShortMapaddTo in interface Char2ShortMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic void addToAll(Char2ShortMap m)
Char2ShortMapaddToAll in interface Char2ShortMapaddToAll in class AbstractChar2ShortMapm - the values that should be added/insertedpublic void putAll(Char2ShortMap m)
Char2ShortMapputAll in interface Char2ShortMapputAll in class AbstractChar2ShortMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Character,? extends java.lang.Short> m)
putAll in interface java.util.Map<java.lang.Character,java.lang.Short>putAll in class AbstractChar2ShortMappublic void putAll(char[] keys,
short[] values,
int offset,
int size)
Char2ShortMapputAll in interface Char2ShortMapputAll in class AbstractChar2ShortMapkeys - 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(char key)
Char2ShortMapcontainsKey in interface Char2ShortMapcontainsKey in class AbstractChar2ShortMapkey - element that is searched forpublic boolean containsValue(short value)
Char2ShortMapcontainsValue in interface Char2ShortMapcontainsValue in class AbstractChar2ShortMapvalue - element that is searched forpublic short getShort(char key)
Char2ShortMapgetShort in interface Char2ShortFunctiongetShort in interface Char2ShortMapkey - the key that is searched forpublic short remChar(char key)
Char2ShortMapremChar in interface Char2ShortMapkey - the element that should be removedpublic short remCharOrDefault(char key,
short defaultValue)
Char2ShortMapremCharOrDefault in interface Char2ShortMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(char key,
short value)
Char2ShortMapremove in interface Char2ShortMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(char key,
short oldValue,
short newValue)
Char2ShortMapreplace in interface Char2ShortMapreplace in class AbstractChar2ShortMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public short replace(char key,
short value)
Char2ShortMapreplace in interface Char2ShortMapreplace in class AbstractChar2ShortMapkey - the element that should be searched forvalue - the value to replace with.public void replaceShorts(Char2ShortMap m)
Char2ShortMapreplaceShorts in interface Char2ShortMapreplaceShorts in class AbstractChar2ShortMapm - elements that should be replaced.public void replaceShorts(CharShortUnaryOperator mappingFunction)
Char2ShortMapreplaceShorts in interface Char2ShortMapreplaceShorts in class AbstractChar2ShortMapmappingFunction - operation to replace all valuespublic short computeShort(char key,
CharShortUnaryOperator mappingFunction)
Char2ShortMapcomputeShort in interface Char2ShortMapcomputeShort in class AbstractChar2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic short computeShortIfAbsent(char key,
Char2ShortFunction mappingFunction)
Char2ShortMapcomputeShortIfAbsent in interface Char2ShortMapcomputeShortIfAbsent in class AbstractChar2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic short computeShortIfPresent(char key,
CharShortUnaryOperator mappingFunction)
Char2ShortMapcomputeShortIfPresent in interface Char2ShortMapcomputeShortIfPresent in class AbstractChar2ShortMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic short mergeShort(char key,
short value,
ShortShortUnaryOperator mappingFunction)
Char2ShortMapmergeShort in interface Char2ShortMapmergeShort in class AbstractChar2ShortMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllShort(Char2ShortMap m, ShortShortUnaryOperator mappingFunction)
Char2ShortMapmergeAllShort in interface Char2ShortMapmergeAllShort in class AbstractChar2ShortMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic short getOrDefault(char key,
short defaultValue)
Char2ShortMapgetOrDefault in interface Char2ShortMapgetOrDefault in class AbstractChar2ShortMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(CharShortConsumer action)
Char2ShortMapforEach in interface Char2ShortMapforEach in class AbstractChar2ShortMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Character,java.lang.Short>size in class java.util.AbstractMap<java.lang.Character,java.lang.Short>public CharSet keySet()
keySet in interface java.util.Map<java.lang.Character,java.lang.Short>keySet in interface Char2ShortMapkeySet in class AbstractChar2ShortMappublic ShortCollection values()
values in interface java.util.Map<java.lang.Character,java.lang.Short>values in interface Char2ShortMapvalues in class AbstractChar2ShortMappublic ObjectSet<Char2ShortMap.Entry> char2ShortEntrySet()
Char2ShortMapchar2ShortEntrySet in interface Char2ShortMap@Deprecated public java.lang.Short get(java.lang.Object key)
get in interface java.util.Map<java.lang.Character,java.lang.Short>get in interface Char2ShortMapget in class AbstractChar2ShortMap@Deprecated
public java.lang.Short getOrDefault(java.lang.Object key,
java.lang.Short defaultValue)
getOrDefault in interface java.util.Map<java.lang.Character,java.lang.Short>getOrDefault in interface Char2ShortMapgetOrDefault in class AbstractChar2ShortMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Character,java.lang.Short>containsValue in interface Char2ShortMapcontainsValue in class java.util.AbstractMap<java.lang.Character,java.lang.Short>value - that is searched for.Map.containsValue(Object)@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Character,java.lang.Short>containsKey in interface Char2ShortMapcontainsKey in class java.util.AbstractMap<java.lang.Character,java.lang.Short>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Short put(java.lang.Character key,
java.lang.Short value)
put in interface java.util.Map<java.lang.Character,java.lang.Short>put in interface Char2ShortMapput in class java.util.AbstractMap<java.lang.Character,java.lang.Short>@Deprecated public java.lang.Short remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Character,java.lang.Short>remove in interface Char2ShortMapremove in class java.util.AbstractMap<java.lang.Character,java.lang.Short>key - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Character,java.lang.Short>clear in class java.util.AbstractMap<java.lang.Character,java.lang.Short>@Deprecated
public java.lang.Short putIfAbsent(java.lang.Character key,
java.lang.Short value)
putIfAbsent in interface java.util.Map<java.lang.Character,java.lang.Short>putIfAbsent in interface Char2ShortMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Character,java.lang.Short>remove in interface Char2ShortMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Character key,
java.lang.Short oldValue,
java.lang.Short newValue)
replace in interface java.util.Map<java.lang.Character,java.lang.Short>replace in interface Char2ShortMap@Deprecated
public java.lang.Short replace(java.lang.Character key,
java.lang.Short value)
replace in interface java.util.Map<java.lang.Character,java.lang.Short>replace in interface Char2ShortMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Character,java.lang.Short>replaceAll in interface Char2ShortMap@Deprecated
public java.lang.Short compute(java.lang.Character key,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
compute in interface java.util.Map<java.lang.Character,java.lang.Short>compute in interface Char2ShortMap@Deprecated
public java.lang.Short computeIfAbsent(java.lang.Character key,
java.util.function.Function<? super java.lang.Character,? extends java.lang.Short> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Character,java.lang.Short>computeIfAbsent in interface Char2ShortMap@Deprecated
public java.lang.Short computeIfPresent(java.lang.Character key,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Character,java.lang.Short>computeIfPresent in interface Char2ShortMap@Deprecated
public java.lang.Short merge(java.lang.Character key,
java.lang.Short value,
java.util.function.BiFunction<? super java.lang.Short,? super java.lang.Short,? extends java.lang.Short> mappingFunction)
merge in interface java.util.Map<java.lang.Character,java.lang.Short>merge in interface Char2ShortMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Character,? super java.lang.Short> action)
forEach in interface java.util.Map<java.lang.Character,java.lang.Short>forEach in interface Char2ShortMap