public static class Int2ByteMaps.SynchronizedMap extends AbstractInt2ByteMap implements Int2ByteMap
AbstractInt2ByteMap.BasicEntryjava.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>Int2ByteMap.Entry, Int2ByteMap.FastEntrySet| Modifier and Type | Method and Description |
|---|---|
byte |
addTo(int key,
byte value)
A Helper method to add a primitives together.
|
void |
addToAll(Int2ByteMap m)
A Helper method to bulk add primitives together.
|
void |
clear()
Deprecated.
|
java.lang.Byte |
compute(java.lang.Integer key,
java.util.function.BiFunction<? super java.lang.Integer,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
byte |
computeByte(int key,
IntByteUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
byte |
computeByteIfAbsent(int key,
Int2ByteFunction mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
byte |
computeByteIfPresent(int key,
IntByteUnaryOperator mappingFunction)
A Type Specific compute method to reduce boxing/unboxing
|
java.lang.Byte |
computeIfAbsent(java.lang.Integer key,
java.util.function.Function<? super java.lang.Integer,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
java.lang.Byte |
computeIfPresent(java.lang.Integer key,
java.util.function.BiFunction<? super java.lang.Integer,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
boolean |
containsKey(int key)
Type Specific method to reduce boxing/unboxing of values
|
boolean |
containsKey(java.lang.Object key)
Deprecated.
|
boolean |
containsValue(byte 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.Integer,? super java.lang.Byte> action)
Deprecated.
|
void |
forEach(IntByteConsumer action)
Type Specific forEach method to reduce boxing/unboxing
|
java.lang.Byte |
get(java.lang.Object key)
Deprecated.
|
byte |
getByte(int key)
A Type Specific get method to reduce boxing/unboxing
|
byte |
getDefaultReturnValue()
Method to see what the default return value is.
|
byte |
getOrDefault(int key,
byte defaultValue)
A Type Specific getOrDefault method to reduce boxing/unboxing
|
java.lang.Byte |
getOrDefault(java.lang.Object key,
java.lang.Byte defaultValue)
Deprecated.
|
ObjectSet<Int2ByteMap.Entry> |
int2ByteEntrySet()
Type Sensitive EntrySet to reduce boxing/unboxing and optionally Temp Object Allocation.
|
IntSet |
keySet() |
java.lang.Byte |
merge(java.lang.Integer key,
java.lang.Byte value,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
void |
mergeAllByte(Int2ByteMap m,
ByteByteUnaryOperator mappingFunction)
A Bulk method for merging Maps.
|
byte |
mergeByte(int key,
byte value,
ByteByteUnaryOperator mappingFunction)
A Type Specific merge method to reduce boxing/unboxing
|
byte |
put(int key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Byte |
put(java.lang.Integer key,
java.lang.Byte value)
Deprecated.
|
void |
putAll(int[] keys,
byte[] 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(Int2ByteMap m)
Type Specific function for the bull putting of values
|
void |
putAll(java.util.Map<? extends java.lang.Integer,? extends java.lang.Byte> m) |
void |
putAllIfAbsent(Int2ByteMap m)
Type-Specific bulk put method put elements into the map if not present.
|
byte |
putIfAbsent(int key,
byte value)
Type Specific method to reduce boxing/unboxing of values
|
java.lang.Byte |
putIfAbsent(java.lang.Integer key,
java.lang.Byte value)
Deprecated.
|
byte |
remInt(int key)
Type Specific remove function to reduce boxing/unboxing
|
byte |
remIntOrDefault(int key,
byte defaultValue)
Type-Specific Remove function with a default return value if wanted.
|
boolean |
remove(int key,
byte value)
Type Specific remove function to reduce boxing/unboxing
|
java.lang.Byte |
remove(java.lang.Object key)
Deprecated.
|
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
byte |
replace(int key,
byte value)
A Type Specific replace method to reduce boxing/unboxing replace an existing value
|
boolean |
replace(int key,
byte oldValue,
byte newValue)
A Type Specific replace method to replace an existing value
|
java.lang.Byte |
replace(java.lang.Integer key,
java.lang.Byte value)
Deprecated.
|
boolean |
replace(java.lang.Integer key,
java.lang.Byte oldValue,
java.lang.Byte newValue)
Deprecated.
|
void |
replaceAll(java.util.function.BiFunction<? super java.lang.Integer,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
Deprecated.
|
void |
replaceBytes(Int2ByteMap m)
Type-Specific bulk replace method.
|
void |
replaceBytes(IntByteUnaryOperator mappingFunction)
A Type Specific mass replace method to reduce boxing/unboxing
|
AbstractInt2ByteMap |
setDefaultReturnValue(byte v)
Method to define the default return value if a requested key isn't present
|
int |
size() |
ByteCollection |
values() |
entrySet, equals, hashCodeentrySet, putAllpublic byte getDefaultReturnValue()
Int2ByteMapgetDefaultReturnValue in interface Int2ByteMapgetDefaultReturnValue in class AbstractInt2ByteMappublic AbstractInt2ByteMap setDefaultReturnValue(byte v)
Int2ByteMapsetDefaultReturnValue in interface Int2ByteMapsetDefaultReturnValue in class AbstractInt2ByteMapv - value that should be the default return valuepublic byte put(int key,
byte value)
Int2ByteMapput in interface Int2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.put(Object, Object)public byte putIfAbsent(int key,
byte value)
Int2ByteMapputIfAbsent in interface Int2ByteMapkey - the key that should be inserted,value - the value that should be insertedMap.putIfAbsent(Object, Object)public void putAllIfAbsent(Int2ByteMap m)
Int2ByteMapputAllIfAbsent in interface Int2ByteMapputAllIfAbsent in class AbstractInt2ByteMapm - elements that should be added if not present.public byte addTo(int key,
byte value)
Int2ByteMapaddTo in interface Int2ByteMapkey - the key that should be inserted,value - the value that should be inserted / addedpublic void addToAll(Int2ByteMap m)
Int2ByteMapaddToAll in interface Int2ByteMapaddToAll in class AbstractInt2ByteMapm - the values that should be added/insertedpublic void putAll(Int2ByteMap m)
Int2ByteMapputAll in interface Int2ByteMapputAll in class AbstractInt2ByteMapm - the elements that should be insertedpublic void putAll(java.util.Map<? extends java.lang.Integer,? extends java.lang.Byte> m)
putAll in interface java.util.Map<java.lang.Integer,java.lang.Byte>putAll in class AbstractInt2ByteMappublic void putAll(int[] keys,
byte[] values,
int offset,
int size)
Int2ByteMapputAll in interface Int2ByteMapputAll in class AbstractInt2ByteMapkeys - 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(int key)
Int2ByteMapcontainsKey in interface Int2ByteMapcontainsKey in class AbstractInt2ByteMapkey - element that is searched forpublic boolean containsValue(byte value)
Int2ByteMapcontainsValue in interface Int2ByteMapcontainsValue in class AbstractInt2ByteMapvalue - element that is searched forpublic byte getByte(int key)
Int2ByteMapgetByte in interface Int2ByteFunctiongetByte in interface Int2ByteMapkey - the key that is searched forpublic byte remInt(int key)
Int2ByteMapremInt in interface Int2ByteMapkey - the element that should be removedpublic byte remIntOrDefault(int key,
byte defaultValue)
Int2ByteMapremIntOrDefault in interface Int2ByteMapkey - the element that should be removeddefaultValue - the value that should be returned if the entry doesn't existMap.remove(Object, Object)public boolean remove(int key,
byte value)
Int2ByteMapremove in interface Int2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)public boolean replace(int key,
byte oldValue,
byte newValue)
Int2ByteMapreplace in interface Int2ByteMapreplace in class AbstractInt2ByteMapkey - the element that should be searched foroldValue - the expected value to be replacednewValue - the value to replace the oldValue with.public byte replace(int key,
byte value)
Int2ByteMapreplace in interface Int2ByteMapreplace in class AbstractInt2ByteMapkey - the element that should be searched forvalue - the value to replace with.public void replaceBytes(Int2ByteMap m)
Int2ByteMapreplaceBytes in interface Int2ByteMapreplaceBytes in class AbstractInt2ByteMapm - elements that should be replaced.public void replaceBytes(IntByteUnaryOperator mappingFunction)
Int2ByteMapreplaceBytes in interface Int2ByteMapreplaceBytes in class AbstractInt2ByteMapmappingFunction - operation to replace all valuespublic byte computeByte(int key,
IntByteUnaryOperator mappingFunction)
Int2ByteMapcomputeByte in interface Int2ByteMapcomputeByte in class AbstractInt2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the valuepublic byte computeByteIfAbsent(int key,
Int2ByteFunction mappingFunction)
Int2ByteMapcomputeByteIfAbsent in interface Int2ByteMapcomputeByteIfAbsent in class AbstractInt2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if not presentpublic byte computeByteIfPresent(int key,
IntByteUnaryOperator mappingFunction)
Int2ByteMapcomputeByteIfPresent in interface Int2ByteMapcomputeByteIfPresent in class AbstractInt2ByteMapkey - the key that should be computedmappingFunction - the operator that should generate the value if presentpublic byte mergeByte(int key,
byte value,
ByteByteUnaryOperator mappingFunction)
Int2ByteMapmergeByte in interface Int2ByteMapmergeByte in class AbstractInt2ByteMapkey - the key that should be be searched forvalue - the value that should be merged withmappingFunction - the operator that should generate the new Valuepublic void mergeAllByte(Int2ByteMap m, ByteByteUnaryOperator mappingFunction)
Int2ByteMapmergeAllByte in interface Int2ByteMapmergeAllByte in class AbstractInt2ByteMapm - the entries that should be bulk addedmappingFunction - the operator that should generate the new Valuepublic byte getOrDefault(int key,
byte defaultValue)
Int2ByteMapgetOrDefault in interface Int2ByteMapgetOrDefault in class AbstractInt2ByteMapkey - the key that is searched fordefaultValue - the value that should be returned if the key is not presentpublic void forEach(IntByteConsumer action)
Int2ByteMapforEach in interface Int2ByteMapforEach in class AbstractInt2ByteMapaction - processor of the values that are iterator overpublic int size()
size in interface java.util.Map<java.lang.Integer,java.lang.Byte>size in class java.util.AbstractMap<java.lang.Integer,java.lang.Byte>public IntSet keySet()
keySet in interface java.util.Map<java.lang.Integer,java.lang.Byte>keySet in interface Int2ByteMapkeySet in class AbstractInt2ByteMappublic ByteCollection values()
values in interface java.util.Map<java.lang.Integer,java.lang.Byte>values in interface Int2ByteMapvalues in class AbstractInt2ByteMappublic ObjectSet<Int2ByteMap.Entry> int2ByteEntrySet()
Int2ByteMapint2ByteEntrySet in interface Int2ByteMap@Deprecated public java.lang.Byte get(java.lang.Object key)
get in interface java.util.Map<java.lang.Integer,java.lang.Byte>get in interface Int2ByteMapget in class AbstractInt2ByteMap@Deprecated
public java.lang.Byte getOrDefault(java.lang.Object key,
java.lang.Byte defaultValue)
getOrDefault in interface java.util.Map<java.lang.Integer,java.lang.Byte>getOrDefault in interface Int2ByteMapgetOrDefault in class AbstractInt2ByteMap@Deprecated public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Integer,java.lang.Byte>containsValue in interface Int2ByteMapcontainsValue in class java.util.AbstractMap<java.lang.Integer,java.lang.Byte>value - that is searched for.Map.containsValue(Object)@Deprecated public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Integer,java.lang.Byte>containsKey in interface Int2ByteMapcontainsKey in class java.util.AbstractMap<java.lang.Integer,java.lang.Byte>key - that is searched for.Map.containsKey(Object)@Deprecated
public java.lang.Byte put(java.lang.Integer key,
java.lang.Byte value)
put in interface java.util.Map<java.lang.Integer,java.lang.Byte>put in interface Int2ByteMapput in class java.util.AbstractMap<java.lang.Integer,java.lang.Byte>@Deprecated public java.lang.Byte remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Integer,java.lang.Byte>remove in interface Int2ByteMapremove in class java.util.AbstractMap<java.lang.Integer,java.lang.Byte>key - the element that should be removedMap.remove(Object)@Deprecated public void clear()
clear in interface java.util.Map<java.lang.Integer,java.lang.Byte>clear in class java.util.AbstractMap<java.lang.Integer,java.lang.Byte>@Deprecated
public java.lang.Byte putIfAbsent(java.lang.Integer key,
java.lang.Byte value)
putIfAbsent in interface java.util.Map<java.lang.Integer,java.lang.Byte>putIfAbsent in interface Int2ByteMap@Deprecated
public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Integer,java.lang.Byte>remove in interface Int2ByteMapkey - the element that should be removedvalue - the expected value that should be foundMap.remove(Object, Object)@Deprecated
public boolean replace(java.lang.Integer key,
java.lang.Byte oldValue,
java.lang.Byte newValue)
replace in interface java.util.Map<java.lang.Integer,java.lang.Byte>replace in interface Int2ByteMap@Deprecated
public java.lang.Byte replace(java.lang.Integer key,
java.lang.Byte value)
replace in interface java.util.Map<java.lang.Integer,java.lang.Byte>replace in interface Int2ByteMap@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.Integer,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
replaceAll in interface java.util.Map<java.lang.Integer,java.lang.Byte>replaceAll in interface Int2ByteMap@Deprecated
public java.lang.Byte compute(java.lang.Integer key,
java.util.function.BiFunction<? super java.lang.Integer,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
compute in interface java.util.Map<java.lang.Integer,java.lang.Byte>compute in interface Int2ByteMap@Deprecated
public java.lang.Byte computeIfAbsent(java.lang.Integer key,
java.util.function.Function<? super java.lang.Integer,? extends java.lang.Byte> mappingFunction)
computeIfAbsent in interface java.util.Map<java.lang.Integer,java.lang.Byte>computeIfAbsent in interface Int2ByteMap@Deprecated
public java.lang.Byte computeIfPresent(java.lang.Integer key,
java.util.function.BiFunction<? super java.lang.Integer,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
computeIfPresent in interface java.util.Map<java.lang.Integer,java.lang.Byte>computeIfPresent in interface Int2ByteMap@Deprecated
public java.lang.Byte merge(java.lang.Integer key,
java.lang.Byte value,
java.util.function.BiFunction<? super java.lang.Byte,? super java.lang.Byte,? extends java.lang.Byte> mappingFunction)
merge in interface java.util.Map<java.lang.Integer,java.lang.Byte>merge in interface Int2ByteMap@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.Integer,? super java.lang.Byte> action)
forEach in interface java.util.Map<java.lang.Integer,java.lang.Byte>forEach in interface Int2ByteMap