public class CharIntHashMap extends AbstractMutableIntValuesMap implements MutableCharIntMap, Externalizable, MutableCharKeysMap
| Constructor and Description |
|---|
CharIntHashMap() |
CharIntHashMap(CharIntMap map) |
CharIntHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(char key,
int toBeAdded) |
MutableCharIntMap |
asSynchronized() |
MutableCharIntMap |
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) |
MutableIntCharMap |
flipUniqueValues() |
void |
forEachKey(CharProcedure procedure) |
void |
forEachKeyValue(CharIntProcedure procedure) |
int |
get(char key) |
int |
getAndPut(char key,
int putValue,
int defaultValue) |
int |
getIfAbsent(char key,
int ifAbsent) |
int |
getIfAbsentPut(char key,
int value) |
int |
getIfAbsentPut(char key,
IntFunction0 function) |
<P> int |
getIfAbsentPutWith(char key,
IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(char key,
CharToIntFunction function) |
int |
getOrThrow(char key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectIntToObjectFunction<? super V,? extends V> function) |
MutableIntIterator |
intIterator() |
MutableCharSet |
keySet() |
LazyCharIterable |
keysView() |
RichIterable<CharIntPair> |
keyValuesView() |
static CharIntHashMap |
newWithKeysValues(char key1,
int value1) |
static CharIntHashMap |
newWithKeysValues(char key1,
int value1,
char key2,
int value2) |
static CharIntHashMap |
newWithKeysValues(char key1,
int value1,
char key2,
int value2,
char key3,
int value3) |
static CharIntHashMap |
newWithKeysValues(char key1,
int value1,
char key2,
int value2,
char key3,
int value3,
char key4,
int value4) |
void |
put(char key,
int value) |
void |
putAll(CharIntMap map) |
void |
readExternal(ObjectInput in) |
CharIntHashMap |
reject(CharIntPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
int |
removeKeyIfAbsent(char key,
int value) |
CharIntHashMap |
select(CharIntPredicate predicate) |
ImmutableCharIntMap |
toImmutable() |
String |
toString() |
int |
updateValue(char key,
int initialValueIfAbsent,
IntToIntFunction function) |
void |
updateValues(CharIntToIntFunction function) |
MutableIntCollection |
values() |
CharIntHashMap |
withKeysValues(char key1,
int value1,
char key2,
int value2) |
CharIntHashMap |
withKeysValues(char key1,
int value1,
char key2,
int value2,
char key3,
int value3) |
CharIntHashMap |
withKeysValues(char key1,
int value1,
char key2,
int value2,
char key3,
int value3,
char key4,
int value4) |
CharIntHashMap |
withKeyValue(char key1,
int value1) |
CharIntHashMap |
withoutAllKeys(CharIterable keys) |
CharIntHashMap |
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 CharIntHashMap()
public CharIntHashMap(int initialCapacity)
public CharIntHashMap(CharIntMap map)
public static CharIntHashMap newWithKeysValues(char key1, int value1)
public static CharIntHashMap newWithKeysValues(char key1, int value1, char key2, int value2)
public static CharIntHashMap newWithKeysValues(char key1, int value1, char key2, int value2, char key3, int value3)
public static CharIntHashMap newWithKeysValues(char key1, int value1, char key2, int value2, char key3, int value3, char key4, int value4)
public boolean equals(Object obj)
equals in interface CharIntMapequals in class Objectpublic int hashCode()
hashCode in interface CharIntMaphashCode in class Objectpublic String toString()
toString in interface CharIntMaptoString in interface PrimitiveIterabletoString in class AbstractIntIterablepublic MutableIntIterator intIterator()
intIterator in interface IntIterableintIterator in interface MutableIntValuesMappublic <V> V injectInto(V injectedValue,
ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface IntIterablepublic void clear()
clear in interface MutableIntValuesMapclear in interface MutableCharKeysMappublic void put(char key,
int value)
put in interface MutableCharIntMappublic void putAll(CharIntMap map)
putAll in interface MutableCharIntMappublic void updateValues(CharIntToIntFunction function)
updateValues in interface MutableCharIntMappublic void removeKey(char key)
removeKey in interface MutableCharIntMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface MutableCharIntMappublic int removeKeyIfAbsent(char key,
int value)
removeKeyIfAbsent in interface MutableCharIntMappublic int getIfAbsentPut(char key,
int value)
getIfAbsentPut in interface MutableCharIntMappublic int getAndPut(char key,
int putValue,
int defaultValue)
getAndPut in interface MutableCharIntMappublic int getIfAbsentPut(char key,
IntFunction0 function)
getIfAbsentPut in interface MutableCharIntMappublic <P> int getIfAbsentPutWith(char key,
IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableCharIntMappublic int getIfAbsentPutWithKey(char key,
CharToIntFunction function)
getIfAbsentPutWithKey in interface MutableCharIntMappublic int addToValue(char key,
int toBeAdded)
addToValue in interface MutableCharIntMappublic int updateValue(char key,
int initialValueIfAbsent,
IntToIntFunction function)
updateValue in interface MutableCharIntMappublic CharIntHashMap withKeyValue(char key1, int value1)
withKeyValue in interface MutableCharIntMappublic CharIntHashMap withKeysValues(char key1, int value1, char key2, int value2)
public CharIntHashMap withKeysValues(char key1, int value1, char key2, int value2, char key3, int value3)
public CharIntHashMap withKeysValues(char key1, int value1, char key2, int value2, char key3, int value3, char key4, int value4)
public CharIntHashMap withoutKey(char key)
withoutKey in interface MutableCharIntMappublic CharIntHashMap withoutAllKeys(CharIterable keys)
withoutAllKeys in interface MutableCharIntMappublic MutableCharIntMap asUnmodifiable()
asUnmodifiable in interface MutableCharIntMappublic MutableCharIntMap asSynchronized()
asSynchronized in interface MutableCharIntMappublic ImmutableCharIntMap toImmutable()
toImmutable in interface CharIntMappublic int get(char key)
get in interface CharIntMappublic int getIfAbsent(char key,
int ifAbsent)
getIfAbsent in interface CharIntMappublic int getOrThrow(char key)
getOrThrow in interface CharIntMappublic boolean containsKey(char key)
containsKey in interface CharIntMapcontainsKey in interface CharKeysMappublic void forEachKey(CharProcedure procedure)
forEachKey in interface CharIntMapforEachKey in interface CharKeysMappublic void forEachKeyValue(CharIntProcedure procedure)
forEachKeyValue in interface CharIntMappublic LazyCharIterable keysView()
keysView in interface CharIntMappublic RichIterable<CharIntPair> keyValuesView()
keyValuesView in interface CharIntMappublic MutableIntCharMap flipUniqueValues()
flipUniqueValues in interface CharIntMapflipUniqueValues in interface MutableCharIntMappublic CharIntHashMap select(CharIntPredicate predicate)
select in interface CharIntMapselect in interface MutableCharIntMappublic CharIntHashMap reject(CharIntPredicate predicate)
reject in interface CharIntMapreject in interface MutableCharIntMappublic 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 CharIntMappublic MutableIntCollection values()
values in interface IntValuesMapCopyright © 2004–2022. All rights reserved.