public class CharIntHashMap extends AbstractMutableIntValuesMap implements org.eclipse.collections.api.map.primitive.MutableCharIntMap, Externalizable, MutableCharKeysMap
| Constructor and Description |
|---|
CharIntHashMap() |
CharIntHashMap(org.eclipse.collections.api.map.primitive.CharIntMap map) |
CharIntHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(char key,
int toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableCharIntMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.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) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.CharIntProcedure procedure) |
int |
get(char key) |
int |
getIfAbsent(char key,
int ifAbsent) |
int |
getIfAbsentPut(char key,
int value) |
int |
getIfAbsentPut(char key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function) |
<P> int |
getIfAbsentPutWith(char key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(char key,
org.eclipse.collections.api.block.function.primitive.CharToIntFunction function) |
int |
getOrThrow(char key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.iterator.MutableIntIterator |
intIterator() |
org.eclipse.collections.api.set.primitive.MutableCharSet |
keySet() |
org.eclipse.collections.api.LazyCharIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.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(org.eclipse.collections.api.map.primitive.CharIntMap map) |
void |
readExternal(ObjectInput in) |
CharIntHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.CharIntPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
int |
removeKeyIfAbsent(char key,
int value) |
CharIntHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.CharIntPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableCharIntMap |
toImmutable() |
String |
toString() |
int |
updateValue(char key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function) |
org.eclipse.collections.api.collection.primitive.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(org.eclipse.collections.api.CharIterable keys) |
CharIntHashMap |
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, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic CharIntHashMap()
public CharIntHashMap(int initialCapacity)
public CharIntHashMap(org.eclipse.collections.api.map.primitive.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)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.CharIntMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractIntIterablepublic org.eclipse.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface org.eclipse.collections.api.IntIterableintIterator in interface org.eclipse.collections.api.map.primitive.MutableIntValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.IntIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableIntValuesMapclear in interface MutableCharKeysMappublic void put(char key,
int value)
put in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic void putAll(org.eclipse.collections.api.map.primitive.CharIntMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic void removeKey(char key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableCharIntMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic int removeKeyIfAbsent(char key,
int value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic int getIfAbsentPut(char key,
int value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic int getIfAbsentPut(char key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic <P> int getIfAbsentPutWith(char key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic int getIfAbsentPutWithKey(char key,
org.eclipse.collections.api.block.function.primitive.CharToIntFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic int addToValue(char key,
int toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic int updateValue(char key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic CharIntHashMap withKeyValue(char key1, int value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.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 org.eclipse.collections.api.map.primitive.MutableCharIntMappublic CharIntHashMap withoutAllKeys(org.eclipse.collections.api.CharIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic org.eclipse.collections.api.map.primitive.MutableCharIntMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic org.eclipse.collections.api.map.primitive.MutableCharIntMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic org.eclipse.collections.api.map.primitive.ImmutableCharIntMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.CharIntMappublic int get(char key)
get in interface org.eclipse.collections.api.map.primitive.CharIntMappublic int getIfAbsent(char key,
int ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.CharIntMappublic int getOrThrow(char key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.CharIntMappublic boolean containsKey(char key)
containsKey in interface org.eclipse.collections.api.map.primitive.CharIntMapcontainsKey in interface CharKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.CharIntMapforEachKey in interface CharKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.CharIntProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.CharIntMappublic org.eclipse.collections.api.LazyCharIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.CharIntMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.CharIntPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.CharIntMappublic CharIntHashMap select(org.eclipse.collections.api.block.predicate.primitive.CharIntPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.CharIntMapselect in interface org.eclipse.collections.api.map.primitive.MutableCharIntMappublic CharIntHashMap reject(org.eclipse.collections.api.block.predicate.primitive.CharIntPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.CharIntMapreject in interface org.eclipse.collections.api.map.primitive.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 org.eclipse.collections.api.set.primitive.MutableCharSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.CharIntMappublic org.eclipse.collections.api.collection.primitive.MutableIntCollection values()
values in interface org.eclipse.collections.api.map.primitive.IntValuesMapCopyright © 2004–2017. All rights reserved.