public class IntCharHashMap extends AbstractMutableCharValuesMap implements MutableIntCharMap, Externalizable, MutableIntKeysMap
| Constructor and Description |
|---|
IntCharHashMap() |
IntCharHashMap(int initialCapacity) |
IntCharHashMap(IntCharMap map) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(int key,
char toBeAdded) |
MutableIntCharMap |
asSynchronized() |
MutableIntCharMap |
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(int key) |
boolean |
equals(Object obj) |
MutableCharIntMap |
flipUniqueValues() |
void |
forEachKey(IntProcedure procedure) |
void |
forEachKeyValue(IntCharProcedure procedure) |
char |
get(int key) |
char |
getAndPut(int key,
char putValue,
char defaultValue) |
char |
getIfAbsent(int key,
char ifAbsent) |
char |
getIfAbsentPut(int key,
char value) |
char |
getIfAbsentPut(int key,
CharFunction0 function) |
<P> char |
getIfAbsentPutWith(int key,
CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(int key,
IntToCharFunction function) |
char |
getOrThrow(int key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectCharToObjectFunction<? super V,? extends V> function) |
MutableIntSet |
keySet() |
LazyIntIterable |
keysView() |
RichIterable<IntCharPair> |
keyValuesView() |
static IntCharHashMap |
newWithKeysValues(int key1,
char value1) |
static IntCharHashMap |
newWithKeysValues(int key1,
char value1,
int key2,
char value2) |
static IntCharHashMap |
newWithKeysValues(int key1,
char value1,
int key2,
char value2,
int key3,
char value3) |
static IntCharHashMap |
newWithKeysValues(int key1,
char value1,
int key2,
char value2,
int key3,
char value3,
int key4,
char value4) |
void |
put(int key,
char value) |
void |
putAll(IntCharMap map) |
void |
readExternal(ObjectInput in) |
IntCharHashMap |
reject(IntCharPredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
char |
removeKeyIfAbsent(int key,
char value) |
IntCharHashMap |
select(IntCharPredicate predicate) |
ImmutableIntCharMap |
toImmutable() |
String |
toString() |
char |
updateValue(int key,
char initialValueIfAbsent,
CharToCharFunction function) |
void |
updateValues(IntCharToCharFunction function) |
MutableCharCollection |
values() |
IntCharHashMap |
withKeysValues(int key1,
char value1,
int key2,
char value2) |
IntCharHashMap |
withKeysValues(int key1,
char value1,
int key2,
char value2,
int key3,
char value3) |
IntCharHashMap |
withKeysValues(int key1,
char value1,
int key2,
char value2,
int key3,
char value3,
int key4,
char value4) |
IntCharHashMap |
withKeyValue(int key1,
char value1) |
IntCharHashMap |
withoutAllKeys(IntIterable keys) |
IntCharHashMap |
withoutKey(int 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 IntCharHashMap()
public IntCharHashMap(int initialCapacity)
public IntCharHashMap(IntCharMap map)
public static IntCharHashMap newWithKeysValues(int key1, char value1)
public static IntCharHashMap newWithKeysValues(int key1, char value1, int key2, char value2)
public static IntCharHashMap newWithKeysValues(int key1, char value1, int key2, char value2, int key3, char value3)
public static IntCharHashMap newWithKeysValues(int key1, char value1, int key2, char value2, int key3, char value3, int key4, char value4)
public boolean equals(Object obj)
equals in interface IntCharMapequals in class Objectpublic int hashCode()
hashCode in interface IntCharMaphashCode in class Objectpublic String toString()
toString in interface IntCharMaptoString 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 MutableIntKeysMappublic void put(int key,
char value)
put in interface MutableIntCharMappublic void putAll(IntCharMap map)
putAll in interface MutableIntCharMappublic void updateValues(IntCharToCharFunction function)
updateValues in interface MutableIntCharMappublic void removeKey(int key)
removeKey in interface MutableIntCharMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface MutableIntCharMappublic char removeKeyIfAbsent(int key,
char value)
removeKeyIfAbsent in interface MutableIntCharMappublic char getIfAbsentPut(int key,
char value)
getIfAbsentPut in interface MutableIntCharMappublic char getAndPut(int key,
char putValue,
char defaultValue)
getAndPut in interface MutableIntCharMappublic char getIfAbsentPut(int key,
CharFunction0 function)
getIfAbsentPut in interface MutableIntCharMappublic <P> char getIfAbsentPutWith(int key,
CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableIntCharMappublic char getIfAbsentPutWithKey(int key,
IntToCharFunction function)
getIfAbsentPutWithKey in interface MutableIntCharMappublic char addToValue(int key,
char toBeAdded)
addToValue in interface MutableIntCharMappublic char updateValue(int key,
char initialValueIfAbsent,
CharToCharFunction function)
updateValue in interface MutableIntCharMappublic IntCharHashMap withKeyValue(int key1, char value1)
withKeyValue in interface MutableIntCharMappublic IntCharHashMap withKeysValues(int key1, char value1, int key2, char value2)
public IntCharHashMap withKeysValues(int key1, char value1, int key2, char value2, int key3, char value3)
public IntCharHashMap withKeysValues(int key1, char value1, int key2, char value2, int key3, char value3, int key4, char value4)
public IntCharHashMap withoutKey(int key)
withoutKey in interface MutableIntCharMappublic IntCharHashMap withoutAllKeys(IntIterable keys)
withoutAllKeys in interface MutableIntCharMappublic MutableIntCharMap asUnmodifiable()
asUnmodifiable in interface MutableIntCharMappublic MutableIntCharMap asSynchronized()
asSynchronized in interface MutableIntCharMappublic ImmutableIntCharMap toImmutable()
toImmutable in interface IntCharMappublic char get(int key)
get in interface IntCharMappublic char getIfAbsent(int key,
char ifAbsent)
getIfAbsent in interface IntCharMappublic char getOrThrow(int key)
getOrThrow in interface IntCharMappublic boolean containsKey(int key)
containsKey in interface IntCharMapcontainsKey in interface IntKeysMappublic void forEachKey(IntProcedure procedure)
forEachKey in interface IntCharMapforEachKey in interface IntKeysMappublic void forEachKeyValue(IntCharProcedure procedure)
forEachKeyValue in interface IntCharMappublic LazyIntIterable keysView()
keysView in interface IntCharMappublic RichIterable<IntCharPair> keyValuesView()
keyValuesView in interface IntCharMappublic MutableCharIntMap flipUniqueValues()
flipUniqueValues in interface IntCharMapflipUniqueValues in interface MutableIntCharMappublic IntCharHashMap select(IntCharPredicate predicate)
select in interface IntCharMapselect in interface MutableIntCharMappublic IntCharHashMap reject(IntCharPredicate predicate)
reject in interface IntCharMapreject in interface MutableIntCharMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableIntSet keySet()
keySet in interface IntCharMappublic MutableCharCollection values()
values in interface CharValuesMapCopyright © 2004–2022. All rights reserved.