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) |
MutableLongCharMap |
flipUniqueValues() |
void |
forEachKey(CharProcedure procedure) |
void |
forEachKeyValue(CharLongProcedure procedure) |
long |
get(char key) |
long |
getAndPut(char key,
long putValue,
long defaultValue) |
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() |
<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() |
long |
updateValue(char key,
long initialValueIfAbsent,
LongToLongFunction function) |
void |
updateValues(CharLongToLongFunction 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, 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 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)
equals in interface CharLongMapequals in class Objectpublic int hashCode()
hashCode in interface CharLongMaphashCode in class Objectpublic String toString()
toString in interface CharLongMaptoString in interface PrimitiveIterabletoString in class AbstractLongIterablepublic MutableLongIterator longIterator()
longIterator in interface LongIterablelongIterator in interface MutableLongValuesMappublic <V> V injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface LongIterablepublic void clear()
clear in interface MutableLongValuesMapclear in interface MutableCharKeysMappublic void put(char key,
long value)
put in interface MutableCharLongMappublic void putAll(CharLongMap map)
putAll in interface MutableCharLongMappublic void updateValues(CharLongToLongFunction function)
updateValues in interface MutableCharLongMappublic void removeKey(char key)
removeKey in interface MutableCharLongMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface MutableCharLongMappublic long removeKeyIfAbsent(char key,
long value)
removeKeyIfAbsent in interface MutableCharLongMappublic long getIfAbsentPut(char key,
long value)
getIfAbsentPut in interface MutableCharLongMappublic long getAndPut(char key,
long putValue,
long defaultValue)
getAndPut in interface MutableCharLongMappublic long getIfAbsentPut(char key,
LongFunction0 function)
getIfAbsentPut in interface MutableCharLongMappublic <P> long getIfAbsentPutWith(char key,
LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableCharLongMappublic long getIfAbsentPutWithKey(char key,
CharToLongFunction function)
getIfAbsentPutWithKey in interface MutableCharLongMappublic long addToValue(char key,
long toBeAdded)
addToValue in interface MutableCharLongMappublic long updateValue(char key,
long initialValueIfAbsent,
LongToLongFunction function)
updateValue in interface MutableCharLongMappublic CharLongHashMap withKeyValue(char key1, long value1)
withKeyValue in interface MutableCharLongMappublic 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 MutableCharLongMappublic CharLongHashMap withoutAllKeys(CharIterable keys)
withoutAllKeys in interface MutableCharLongMappublic MutableCharLongMap asUnmodifiable()
asUnmodifiable in interface MutableCharLongMappublic MutableCharLongMap asSynchronized()
asSynchronized in interface MutableCharLongMappublic ImmutableCharLongMap toImmutable()
toImmutable in interface CharLongMappublic long get(char key)
get in interface CharLongMappublic long getIfAbsent(char key,
long ifAbsent)
getIfAbsent in interface CharLongMappublic long getOrThrow(char key)
getOrThrow in interface CharLongMappublic boolean containsKey(char key)
containsKey in interface CharLongMapcontainsKey in interface CharKeysMappublic void forEachKey(CharProcedure procedure)
forEachKey in interface CharLongMapforEachKey in interface CharKeysMappublic void forEachKeyValue(CharLongProcedure procedure)
forEachKeyValue in interface CharLongMappublic LazyCharIterable keysView()
keysView in interface CharLongMappublic RichIterable<CharLongPair> keyValuesView()
keyValuesView in interface CharLongMappublic MutableLongCharMap flipUniqueValues()
flipUniqueValues in interface CharLongMapflipUniqueValues in interface MutableCharLongMappublic CharLongHashMap select(CharLongPredicate predicate)
select in interface CharLongMapselect in interface MutableCharLongMappublic CharLongHashMap reject(CharLongPredicate predicate)
reject in interface CharLongMapreject in interface MutableCharLongMappublic 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 CharLongMappublic MutableLongCollection values()
values in interface LongValuesMapCopyright © 2004–2022. All rights reserved.