public class CharByteHashMap extends AbstractMutableByteValuesMap implements MutableCharByteMap, Externalizable, MutableCharKeysMap
| Constructor and Description |
|---|
CharByteHashMap() |
CharByteHashMap(CharByteMap map) |
CharByteHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
byte |
addToValue(char key,
byte toBeAdded) |
MutableCharByteMap |
asSynchronized() |
MutableCharByteMap |
asUnmodifiable() |
MutableByteIterator |
byteIterator() |
void |
clear() |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
containsKey(char key) |
boolean |
equals(Object obj) |
MutableByteCharMap |
flipUniqueValues() |
void |
forEachKey(CharProcedure procedure) |
void |
forEachKeyValue(CharByteProcedure procedure) |
byte |
get(char key) |
byte |
getAndPut(char key,
byte putValue,
byte defaultValue) |
byte |
getIfAbsent(char key,
byte ifAbsent) |
byte |
getIfAbsentPut(char key,
byte value) |
byte |
getIfAbsentPut(char key,
ByteFunction0 function) |
<P> byte |
getIfAbsentPutWith(char key,
ByteFunction<? super P> function,
P parameter) |
byte |
getIfAbsentPutWithKey(char key,
CharToByteFunction function) |
byte |
getOrThrow(char key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectByteToObjectFunction<? super V,? extends V> function) |
MutableCharSet |
keySet() |
LazyCharIterable |
keysView() |
RichIterable<CharBytePair> |
keyValuesView() |
static CharByteHashMap |
newWithKeysValues(char key1,
byte value1) |
static CharByteHashMap |
newWithKeysValues(char key1,
byte value1,
char key2,
byte value2) |
static CharByteHashMap |
newWithKeysValues(char key1,
byte value1,
char key2,
byte value2,
char key3,
byte value3) |
static CharByteHashMap |
newWithKeysValues(char key1,
byte value1,
char key2,
byte value2,
char key3,
byte value3,
char key4,
byte value4) |
void |
put(char key,
byte value) |
void |
putAll(CharByteMap map) |
void |
readExternal(ObjectInput in) |
CharByteHashMap |
reject(CharBytePredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
byte |
removeKeyIfAbsent(char key,
byte value) |
CharByteHashMap |
select(CharBytePredicate predicate) |
ImmutableCharByteMap |
toImmutable() |
String |
toString() |
byte |
updateValue(char key,
byte initialValueIfAbsent,
ByteToByteFunction function) |
void |
updateValues(CharByteToByteFunction function) |
MutableByteCollection |
values() |
CharByteHashMap |
withKeysValues(char key1,
byte value1,
char key2,
byte value2) |
CharByteHashMap |
withKeysValues(char key1,
byte value1,
char key2,
byte value2,
char key3,
byte value3) |
CharByteHashMap |
withKeysValues(char key1,
byte value1,
char key2,
byte value2,
char key3,
byte value3,
char key4,
byte value4) |
CharByteHashMap |
withKeyValue(char key1,
byte value1) |
CharByteHashMap |
withoutAllKeys(CharIterable keys) |
CharByteHashMap |
withoutKey(char key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArrayasLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListputPair, withAllKeyValuesinjectIntoKeyValuecollect, reject, selectcontainsValue, forEachValue, tapallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic CharByteHashMap()
public CharByteHashMap(int initialCapacity)
public CharByteHashMap(CharByteMap map)
public static CharByteHashMap newWithKeysValues(char key1, byte value1)
public static CharByteHashMap newWithKeysValues(char key1, byte value1, char key2, byte value2)
public static CharByteHashMap newWithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3)
public static CharByteHashMap newWithKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3, char key4, byte value4)
public boolean equals(Object obj)
equals in interface CharByteMapequals in class Objectpublic int hashCode()
hashCode in interface CharByteMaphashCode in class Objectpublic String toString()
toString in interface CharByteMaptoString in interface PrimitiveIterabletoString in class AbstractByteIterablepublic MutableByteIterator byteIterator()
byteIterator in interface ByteIterablebyteIterator in interface MutableByteValuesMappublic <V> V injectInto(V injectedValue,
ObjectByteToObjectFunction<? super V,? extends V> function)
injectInto in interface ByteIterablepublic void clear()
clear in interface MutableByteValuesMapclear in interface MutableCharKeysMappublic void put(char key,
byte value)
put in interface MutableCharByteMappublic void putAll(CharByteMap map)
putAll in interface MutableCharByteMappublic void updateValues(CharByteToByteFunction function)
updateValues in interface MutableCharByteMappublic void removeKey(char key)
removeKey in interface MutableCharByteMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface MutableCharByteMappublic byte removeKeyIfAbsent(char key,
byte value)
removeKeyIfAbsent in interface MutableCharByteMappublic byte getIfAbsentPut(char key,
byte value)
getIfAbsentPut in interface MutableCharByteMappublic byte getAndPut(char key,
byte putValue,
byte defaultValue)
getAndPut in interface MutableCharByteMappublic byte getIfAbsentPut(char key,
ByteFunction0 function)
getIfAbsentPut in interface MutableCharByteMappublic <P> byte getIfAbsentPutWith(char key,
ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableCharByteMappublic byte getIfAbsentPutWithKey(char key,
CharToByteFunction function)
getIfAbsentPutWithKey in interface MutableCharByteMappublic byte addToValue(char key,
byte toBeAdded)
addToValue in interface MutableCharByteMappublic byte updateValue(char key,
byte initialValueIfAbsent,
ByteToByteFunction function)
updateValue in interface MutableCharByteMappublic CharByteHashMap withKeyValue(char key1, byte value1)
withKeyValue in interface MutableCharByteMappublic CharByteHashMap withKeysValues(char key1, byte value1, char key2, byte value2)
public CharByteHashMap withKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3)
public CharByteHashMap withKeysValues(char key1, byte value1, char key2, byte value2, char key3, byte value3, char key4, byte value4)
public CharByteHashMap withoutKey(char key)
withoutKey in interface MutableCharByteMappublic CharByteHashMap withoutAllKeys(CharIterable keys)
withoutAllKeys in interface MutableCharByteMappublic MutableCharByteMap asUnmodifiable()
asUnmodifiable in interface MutableCharByteMappublic MutableCharByteMap asSynchronized()
asSynchronized in interface MutableCharByteMappublic ImmutableCharByteMap toImmutable()
toImmutable in interface CharByteMappublic byte get(char key)
get in interface CharByteMappublic byte getIfAbsent(char key,
byte ifAbsent)
getIfAbsent in interface CharByteMappublic byte getOrThrow(char key)
getOrThrow in interface CharByteMappublic boolean containsKey(char key)
containsKey in interface CharByteMapcontainsKey in interface CharKeysMappublic void forEachKey(CharProcedure procedure)
forEachKey in interface CharByteMapforEachKey in interface CharKeysMappublic void forEachKeyValue(CharByteProcedure procedure)
forEachKeyValue in interface CharByteMappublic LazyCharIterable keysView()
keysView in interface CharByteMappublic RichIterable<CharBytePair> keyValuesView()
keyValuesView in interface CharByteMappublic MutableByteCharMap flipUniqueValues()
flipUniqueValues in interface CharByteMapflipUniqueValues in interface MutableCharByteMappublic CharByteHashMap select(CharBytePredicate predicate)
select in interface CharByteMapselect in interface MutableCharByteMappublic CharByteHashMap reject(CharBytePredicate predicate)
reject in interface CharByteMapreject in interface MutableCharByteMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableCharSet keySet()
keySet in interface CharByteMappublic MutableByteCollection values()
values in interface ByteValuesMapCopyright © 2004–2022. All rights reserved.