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, toArray
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
collect, reject, select
containsValue, forEachValue
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
isEmpty, notEmpty, size
public 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)
ByteCharMap
Map.equals(Object)
.equals
in interface ByteCharMap
equals
in class Object
public int hashCode()
ByteCharMap
Map.hashCode()
.hashCode
in interface ByteCharMap
hashCode
in class Object
public String toString()
PrimitiveIterable
toString
in interface ByteCharMap
toString
in interface PrimitiveIterable
toString
in class AbstractCharIterable
public MutableCharIterator charIterator()
charIterator
in interface CharIterable
charIterator
in interface MutableCharValuesMap
public <V> V injectInto(V injectedValue, ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto
in interface CharIterable
public void clear()
clear
in interface MutableCharValuesMap
clear
in interface MutableByteKeysMap
public void put(byte key, char value)
put
in interface MutableByteCharMap
public void putAll(ByteCharMap map)
putAll
in interface MutableByteCharMap
public void removeKey(byte key)
removeKey
in interface MutableByteCharMap
removeKey
in interface MutableByteKeysMap
public void remove(byte key)
remove
in interface MutableByteCharMap
public char removeKeyIfAbsent(byte key, char value)
removeKeyIfAbsent
in interface MutableByteCharMap
public char getIfAbsentPut(byte key, char value)
getIfAbsentPut
in interface MutableByteCharMap
public char getIfAbsentPut(byte key, CharFunction0 function)
getIfAbsentPut
in interface MutableByteCharMap
public <P> char getIfAbsentPutWith(byte key, CharFunction<? super P> function, P parameter)
getIfAbsentPutWith
in interface MutableByteCharMap
public char getIfAbsentPutWithKey(byte key, ByteToCharFunction function)
getIfAbsentPutWithKey
in interface MutableByteCharMap
public char addToValue(byte key, char toBeAdded)
addToValue
in interface MutableByteCharMap
public char updateValue(byte key, char initialValueIfAbsent, CharToCharFunction function)
updateValue
in interface MutableByteCharMap
public ByteCharHashMap withKeyValue(byte key1, char value1)
withKeyValue
in interface MutableByteCharMap
public 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 MutableByteCharMap
public ByteCharHashMap withoutAllKeys(ByteIterable keys)
withoutAllKeys
in interface MutableByteCharMap
public MutableByteCharMap asUnmodifiable()
asUnmodifiable
in interface MutableByteCharMap
public MutableByteCharMap asSynchronized()
asSynchronized
in interface MutableByteCharMap
public ImmutableByteCharMap toImmutable()
toImmutable
in interface ByteCharMap
public char get(byte key)
get
in interface ByteCharMap
public char getIfAbsent(byte key, char ifAbsent)
getIfAbsent
in interface ByteCharMap
public char getOrThrow(byte key)
getOrThrow
in interface ByteCharMap
public boolean containsKey(byte key)
containsKey
in interface ByteCharMap
containsKey
in interface ByteKeysMap
public void forEachKey(ByteProcedure procedure)
forEachKey
in interface ByteCharMap
forEachKey
in interface ByteKeysMap
public void forEachKeyValue(ByteCharProcedure procedure)
forEachKeyValue
in interface ByteCharMap
public LazyByteIterable keysView()
keysView
in interface ByteCharMap
public RichIterable<ByteCharPair> keyValuesView()
keyValuesView
in interface ByteCharMap
public ByteCharHashMap select(ByteCharPredicate predicate)
select
in interface ByteCharMap
select
in interface MutableByteCharMap
public ByteCharHashMap reject(ByteCharPredicate predicate)
reject
in interface ByteCharMap
reject
in interface MutableByteCharMap
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void compact()
public MutableByteSet keySet()
keySet
in interface ByteCharMap
public MutableCharCollection values()
values
in interface CharValuesMap
Copyright © 2004–2016. All rights reserved.