public class ByteCharHashMap extends AbstractMutableCharValuesMap implements MutableByteCharMap, Externalizable, MutableByteKeysMap
| Constructor and Description |
|---|
ByteCharHashMap() |
ByteCharHashMap(ByteCharMap map) |
ByteCharHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(byte key,
char toBeAdded) |
MutableByteCharMap |
asSynchronized() |
MutableByteCharMap |
asUnmodifiable() |
MutableCharIterator |
charIterator() |
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(byte key) |
boolean |
equals(Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(ByteProcedure procedure) |
void |
forEachKeyValue(ByteCharProcedure procedure) |
char |
get(byte key) |
char |
getIfAbsent(byte key,
char ifAbsent) |
char |
getIfAbsentPut(byte key,
char value) |
char |
getIfAbsentPut(byte key,
CharFunction0 function) |
<P> char |
getIfAbsentPutWith(byte key,
CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(byte key,
ByteToCharFunction function) |
char |
getOrThrow(byte key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
ObjectCharToObjectFunction<? super V,? extends V> function) |
MutableByteSet |
keySet() |
LazyByteIterable |
keysView() |
RichIterable<ByteCharPair> |
keyValuesView() |
static ByteCharHashMap |
newWithKeysValues(byte key1,
char value1) |
static ByteCharHashMap |
newWithKeysValues(byte key1,
char value1,
byte key2,
char value2) |
static ByteCharHashMap |
newWithKeysValues(byte key1,
char value1,
byte key2,
char value2,
byte key3,
char value3) |
static ByteCharHashMap |
newWithKeysValues(byte key1,
char value1,
byte key2,
char value2,
byte key3,
char value3,
byte key4,
char value4) |
void |
put(byte key,
char value) |
void |
putAll(ByteCharMap map) |
void |
readExternal(ObjectInput in) |
ByteCharHashMap |
reject(ByteCharPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
char |
removeKeyIfAbsent(byte key,
char value) |
ByteCharHashMap |
select(ByteCharPredicate predicate) |
ImmutableByteCharMap |
toImmutable() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
char |
updateValue(byte key,
char initialValueIfAbsent,
CharToCharFunction function) |
MutableCharCollection |
values() |
ByteCharHashMap |
withKeysValues(byte key1,
char value1,
byte key2,
char value2) |
ByteCharHashMap |
withKeysValues(byte key1,
char value1,
byte key2,
char value2,
byte key3,
char value3) |
ByteCharHashMap |
withKeysValues(byte key1,
char value1,
byte key2,
char value2,
byte key3,
char value3,
byte key4,
char value4) |
ByteCharHashMap |
withKeyValue(byte key1,
char value1) |
ByteCharHashMap |
withoutAllKeys(ByteIterable keys) |
ByteCharHashMap |
withoutKey(byte key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayasLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ByteCharHashMap()
public ByteCharHashMap(int initialCapacity)
public ByteCharHashMap(ByteCharMap map)
public static ByteCharHashMap newWithKeysValues(byte key1, char value1)
public static ByteCharHashMap newWithKeysValues(byte key1, char value1, byte key2, char value2)
public static ByteCharHashMap newWithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3)
public static ByteCharHashMap newWithKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3, byte key4, char value4)
public boolean equals(Object obj)
ByteCharMapMap.equals(Object).equals in interface ByteCharMapequals in class Objectpublic int hashCode()
ByteCharMapMap.hashCode().hashCode in interface ByteCharMaphashCode in class Objectpublic String toString()
PrimitiveIterabletoString in interface ByteCharMaptoString in interface PrimitiveIterabletoString in class AbstractCharIterablepublic MutableCharIterator charIterator()
charIterator in interface CharIterablecharIterator in interface MutableCharValuesMappublic <V> V injectInto(V injectedValue,
ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto in interface CharIterablepublic void clear()
clear in interface MutableCharValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
char value)
put in interface MutableByteCharMappublic void putAll(ByteCharMap map)
putAll in interface MutableByteCharMappublic void removeKey(byte key)
removeKey in interface MutableByteCharMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface MutableByteCharMappublic char removeKeyIfAbsent(byte key,
char value)
removeKeyIfAbsent in interface MutableByteCharMappublic char getIfAbsentPut(byte key,
char value)
getIfAbsentPut in interface MutableByteCharMappublic char getIfAbsentPut(byte key,
CharFunction0 function)
getIfAbsentPut in interface MutableByteCharMappublic <P> char getIfAbsentPutWith(byte key,
CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableByteCharMappublic char getIfAbsentPutWithKey(byte key,
ByteToCharFunction function)
getIfAbsentPutWithKey in interface MutableByteCharMappublic char addToValue(byte key,
char toBeAdded)
addToValue in interface MutableByteCharMappublic char updateValue(byte key,
char initialValueIfAbsent,
CharToCharFunction function)
updateValue in interface MutableByteCharMappublic ByteCharHashMap withKeyValue(byte key1, char value1)
withKeyValue in interface MutableByteCharMappublic ByteCharHashMap withKeysValues(byte key1, char value1, byte key2, char value2)
public ByteCharHashMap withKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3)
public ByteCharHashMap withKeysValues(byte key1, char value1, byte key2, char value2, byte key3, char value3, byte key4, char value4)
public ByteCharHashMap withoutKey(byte key)
withoutKey in interface MutableByteCharMappublic ByteCharHashMap withoutAllKeys(ByteIterable keys)
withoutAllKeys in interface MutableByteCharMappublic MutableByteCharMap asUnmodifiable()
asUnmodifiable in interface MutableByteCharMappublic MutableByteCharMap asSynchronized()
asSynchronized in interface MutableByteCharMappublic ImmutableByteCharMap toImmutable()
toImmutable in interface ByteCharMappublic char get(byte key)
get in interface ByteCharMappublic char getIfAbsent(byte key,
char ifAbsent)
getIfAbsent in interface ByteCharMappublic char getOrThrow(byte key)
getOrThrow in interface ByteCharMappublic boolean containsKey(byte key)
containsKey in interface ByteCharMapcontainsKey in interface ByteKeysMappublic void forEachKey(ByteProcedure procedure)
forEachKey in interface ByteCharMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(ByteCharProcedure procedure)
forEachKeyValue in interface ByteCharMappublic LazyByteIterable keysView()
keysView in interface ByteCharMappublic RichIterable<ByteCharPair> keyValuesView()
keyValuesView in interface ByteCharMappublic ByteCharHashMap select(ByteCharPredicate predicate)
select in interface ByteCharMapselect in interface MutableByteCharMappublic ByteCharHashMap reject(ByteCharPredicate predicate)
reject in interface ByteCharMapreject in interface MutableByteCharMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableByteSet keySet()
keySet in interface ByteCharMappublic MutableCharCollection values()
values in interface CharValuesMapCopyright © 2004–2016. All rights reserved.