public class IntCharHashMap extends AbstractMutableCharValuesMap implements org.eclipse.collections.api.map.primitive.MutableIntCharMap, Externalizable, MutableIntKeysMap
| Constructor and Description |
|---|
IntCharHashMap() |
IntCharHashMap(int initialCapacity) |
IntCharHashMap(org.eclipse.collections.api.map.primitive.IntCharMap map) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(int key,
char toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableIntCharMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableIntCharMap |
asUnmodifiable() |
org.eclipse.collections.api.iterator.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) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.IntCharProcedure procedure) |
char |
get(int key) |
char |
getIfAbsent(int key,
char ifAbsent) |
char |
getIfAbsentPut(int key,
char value) |
char |
getIfAbsentPut(int key,
org.eclipse.collections.api.block.function.primitive.CharFunction0 function) |
<P> char |
getIfAbsentPutWith(int key,
org.eclipse.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(int key,
org.eclipse.collections.api.block.function.primitive.IntToCharFunction function) |
char |
getOrThrow(int key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.set.primitive.MutableIntSet |
keySet() |
org.eclipse.collections.api.LazyIntIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.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(org.eclipse.collections.api.map.primitive.IntCharMap map) |
void |
readExternal(ObjectInput in) |
IntCharHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.IntCharPredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
char |
removeKeyIfAbsent(int key,
char value) |
IntCharHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.IntCharPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableIntCharMap |
toImmutable() |
String |
toString() |
char |
updateValue(int key,
char initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.CharToCharFunction function) |
org.eclipse.collections.api.collection.primitive.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(org.eclipse.collections.api.IntIterable keys) |
IntCharHashMap |
withoutKey(int 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 IntCharHashMap()
public IntCharHashMap(int initialCapacity)
public IntCharHashMap(org.eclipse.collections.api.map.primitive.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)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.IntCharMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractCharIterablepublic org.eclipse.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface org.eclipse.collections.api.CharIterablecharIterator in interface org.eclipse.collections.api.map.primitive.MutableCharValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.CharIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableCharValuesMapclear in interface MutableIntKeysMappublic void put(int key,
char value)
put in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic void putAll(org.eclipse.collections.api.map.primitive.IntCharMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic void removeKey(int key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableIntCharMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic char removeKeyIfAbsent(int key,
char value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic char getIfAbsentPut(int key,
char value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic char getIfAbsentPut(int key,
org.eclipse.collections.api.block.function.primitive.CharFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic <P> char getIfAbsentPutWith(int key,
org.eclipse.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic char getIfAbsentPutWithKey(int key,
org.eclipse.collections.api.block.function.primitive.IntToCharFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic char addToValue(int key,
char toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic char updateValue(int key,
char initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.CharToCharFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic IntCharHashMap withKeyValue(int key1, char value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.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 org.eclipse.collections.api.map.primitive.MutableIntCharMappublic IntCharHashMap withoutAllKeys(org.eclipse.collections.api.IntIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic org.eclipse.collections.api.map.primitive.MutableIntCharMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic org.eclipse.collections.api.map.primitive.MutableIntCharMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic org.eclipse.collections.api.map.primitive.ImmutableIntCharMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.IntCharMappublic char get(int key)
get in interface org.eclipse.collections.api.map.primitive.IntCharMappublic char getIfAbsent(int key,
char ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.IntCharMappublic char getOrThrow(int key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.IntCharMappublic boolean containsKey(int key)
containsKey in interface org.eclipse.collections.api.map.primitive.IntCharMapcontainsKey in interface IntKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.IntCharMapforEachKey in interface IntKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.IntCharProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.IntCharMappublic org.eclipse.collections.api.LazyIntIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.IntCharMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.IntCharPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.IntCharMappublic IntCharHashMap select(org.eclipse.collections.api.block.predicate.primitive.IntCharPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.IntCharMapselect in interface org.eclipse.collections.api.map.primitive.MutableIntCharMappublic IntCharHashMap reject(org.eclipse.collections.api.block.predicate.primitive.IntCharPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.IntCharMapreject in interface org.eclipse.collections.api.map.primitive.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 org.eclipse.collections.api.set.primitive.MutableIntSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.IntCharMappublic org.eclipse.collections.api.collection.primitive.MutableCharCollection values()
values in interface org.eclipse.collections.api.map.primitive.CharValuesMapCopyright © 2004–2018. All rights reserved.