public class CharLongHashMap extends AbstractMutableLongValuesMap implements MutableCharLongMap, Externalizable, MutableCharKeysMap
Constructor and Description |
---|
CharLongHashMap() |
CharLongHashMap(CharLongMap map) |
CharLongHashMap(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
long |
addToValue(char key,
long toBeAdded) |
MutableCharLongMap |
asSynchronized() |
MutableCharLongMap |
asUnmodifiable() |
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)
Follows the same general contract as
Map.equals(Object) . |
void |
forEachKey(CharProcedure procedure) |
void |
forEachKeyValue(CharLongProcedure procedure) |
long |
get(char key) |
long |
getIfAbsent(char key,
long ifAbsent) |
long |
getIfAbsentPut(char key,
long value) |
long |
getIfAbsentPut(char key,
LongFunction0 function) |
<P> long |
getIfAbsentPutWith(char key,
LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(char key,
CharToLongFunction function) |
long |
getOrThrow(char key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode() . |
<V> V |
injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function) |
MutableCharSet |
keySet() |
LazyCharIterable |
keysView() |
RichIterable<CharLongPair> |
keyValuesView() |
MutableLongIterator |
longIterator() |
static CharLongHashMap |
newWithKeysValues(char key1,
long value1) |
static CharLongHashMap |
newWithKeysValues(char key1,
long value1,
char key2,
long value2) |
static CharLongHashMap |
newWithKeysValues(char key1,
long value1,
char key2,
long value2,
char key3,
long value3) |
static CharLongHashMap |
newWithKeysValues(char key1,
long value1,
char key2,
long value2,
char key3,
long value3,
char key4,
long value4) |
void |
put(char key,
long value) |
void |
putAll(CharLongMap map) |
void |
readExternal(ObjectInput in) |
CharLongHashMap |
reject(CharLongPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
long |
removeKeyIfAbsent(char key,
long value) |
CharLongHashMap |
select(CharLongPredicate predicate) |
ImmutableCharLongMap |
toImmutable() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
long |
updateValue(char key,
long initialValueIfAbsent,
LongToLongFunction function) |
MutableLongCollection |
values() |
CharLongHashMap |
withKeysValues(char key1,
long value1,
char key2,
long value2) |
CharLongHashMap |
withKeysValues(char key1,
long value1,
char key2,
long value2,
char key3,
long value3) |
CharLongHashMap |
withKeysValues(char key1,
long value1,
char key2,
long value2,
char key3,
long value3,
char key4,
long value4) |
CharLongHashMap |
withKeyValue(char key1,
long value1) |
CharLongHashMap |
withoutAllKeys(CharIterable keys) |
CharLongHashMap |
withoutKey(char 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 CharLongHashMap()
public CharLongHashMap(int initialCapacity)
public CharLongHashMap(CharLongMap map)
public static CharLongHashMap newWithKeysValues(char key1, long value1)
public static CharLongHashMap newWithKeysValues(char key1, long value1, char key2, long value2)
public static CharLongHashMap newWithKeysValues(char key1, long value1, char key2, long value2, char key3, long value3)
public static CharLongHashMap newWithKeysValues(char key1, long value1, char key2, long value2, char key3, long value3, char key4, long value4)
public boolean equals(Object obj)
CharLongMap
Map.equals(Object)
.equals
in interface CharLongMap
equals
in class Object
public int hashCode()
CharLongMap
Map.hashCode()
.hashCode
in interface CharLongMap
hashCode
in class Object
public String toString()
PrimitiveIterable
toString
in interface CharLongMap
toString
in interface PrimitiveIterable
toString
in class AbstractLongIterable
public MutableLongIterator longIterator()
longIterator
in interface LongIterable
longIterator
in interface MutableLongValuesMap
public <V> V injectInto(V injectedValue, ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto
in interface LongIterable
public void clear()
clear
in interface MutableLongValuesMap
clear
in interface MutableCharKeysMap
public void put(char key, long value)
put
in interface MutableCharLongMap
public void putAll(CharLongMap map)
putAll
in interface MutableCharLongMap
public void removeKey(char key)
removeKey
in interface MutableCharLongMap
removeKey
in interface MutableCharKeysMap
public void remove(char key)
remove
in interface MutableCharLongMap
public long removeKeyIfAbsent(char key, long value)
removeKeyIfAbsent
in interface MutableCharLongMap
public long getIfAbsentPut(char key, long value)
getIfAbsentPut
in interface MutableCharLongMap
public long getIfAbsentPut(char key, LongFunction0 function)
getIfAbsentPut
in interface MutableCharLongMap
public <P> long getIfAbsentPutWith(char key, LongFunction<? super P> function, P parameter)
getIfAbsentPutWith
in interface MutableCharLongMap
public long getIfAbsentPutWithKey(char key, CharToLongFunction function)
getIfAbsentPutWithKey
in interface MutableCharLongMap
public long addToValue(char key, long toBeAdded)
addToValue
in interface MutableCharLongMap
public long updateValue(char key, long initialValueIfAbsent, LongToLongFunction function)
updateValue
in interface MutableCharLongMap
public CharLongHashMap withKeyValue(char key1, long value1)
withKeyValue
in interface MutableCharLongMap
public CharLongHashMap withKeysValues(char key1, long value1, char key2, long value2)
public CharLongHashMap withKeysValues(char key1, long value1, char key2, long value2, char key3, long value3)
public CharLongHashMap withKeysValues(char key1, long value1, char key2, long value2, char key3, long value3, char key4, long value4)
public CharLongHashMap withoutKey(char key)
withoutKey
in interface MutableCharLongMap
public CharLongHashMap withoutAllKeys(CharIterable keys)
withoutAllKeys
in interface MutableCharLongMap
public MutableCharLongMap asUnmodifiable()
asUnmodifiable
in interface MutableCharLongMap
public MutableCharLongMap asSynchronized()
asSynchronized
in interface MutableCharLongMap
public ImmutableCharLongMap toImmutable()
toImmutable
in interface CharLongMap
public long get(char key)
get
in interface CharLongMap
public long getIfAbsent(char key, long ifAbsent)
getIfAbsent
in interface CharLongMap
public long getOrThrow(char key)
getOrThrow
in interface CharLongMap
public boolean containsKey(char key)
containsKey
in interface CharLongMap
containsKey
in interface CharKeysMap
public void forEachKey(CharProcedure procedure)
forEachKey
in interface CharLongMap
forEachKey
in interface CharKeysMap
public void forEachKeyValue(CharLongProcedure procedure)
forEachKeyValue
in interface CharLongMap
public LazyCharIterable keysView()
keysView
in interface CharLongMap
public RichIterable<CharLongPair> keyValuesView()
keyValuesView
in interface CharLongMap
public CharLongHashMap select(CharLongPredicate predicate)
select
in interface CharLongMap
select
in interface MutableCharLongMap
public CharLongHashMap reject(CharLongPredicate predicate)
reject
in interface CharLongMap
reject
in interface MutableCharLongMap
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 MutableCharSet keySet()
keySet
in interface CharLongMap
public MutableLongCollection values()
values
in interface LongValuesMap
Copyright © 2004–2016. All rights reserved.