public class CharCharHashMap extends AbstractMutableCharValuesMap implements org.eclipse.collections.api.map.primitive.MutableCharCharMap, Externalizable, MutableCharKeysMap
| Constructor and Description |
|---|
CharCharHashMap() |
CharCharHashMap(org.eclipse.collections.api.map.primitive.CharCharMap map) |
CharCharHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(char key,
char toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableCharCharMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableCharCharMap |
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(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.CharCharProcedure procedure) |
char |
get(char key) |
char |
getIfAbsent(char key,
char ifAbsent) |
char |
getIfAbsentPut(char key,
char value) |
char |
getIfAbsentPut(char key,
org.eclipse.collections.api.block.function.primitive.CharFunction0 function) |
<P> char |
getIfAbsentPutWith(char key,
org.eclipse.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(char key,
org.eclipse.collections.api.block.function.primitive.CharToCharFunction function) |
char |
getOrThrow(char 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.MutableCharSet |
keySet() |
org.eclipse.collections.api.LazyCharIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.CharCharPair> |
keyValuesView() |
static CharCharHashMap |
newWithKeysValues(char key1,
char value1) |
static CharCharHashMap |
newWithKeysValues(char key1,
char value1,
char key2,
char value2) |
static CharCharHashMap |
newWithKeysValues(char key1,
char value1,
char key2,
char value2,
char key3,
char value3) |
static CharCharHashMap |
newWithKeysValues(char key1,
char value1,
char key2,
char value2,
char key3,
char value3,
char key4,
char value4) |
void |
put(char key,
char value) |
void |
putAll(org.eclipse.collections.api.map.primitive.CharCharMap map) |
void |
readExternal(ObjectInput in) |
CharCharHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.CharCharPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
char |
removeKeyIfAbsent(char key,
char value) |
CharCharHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.CharCharPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableCharCharMap |
toImmutable() |
String |
toString() |
char |
updateValue(char key,
char initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.CharToCharFunction function) |
org.eclipse.collections.api.collection.primitive.MutableCharCollection |
values() |
CharCharHashMap |
withKeysValues(char key1,
char value1,
char key2,
char value2) |
CharCharHashMap |
withKeysValues(char key1,
char value1,
char key2,
char value2,
char key3,
char value3) |
CharCharHashMap |
withKeysValues(char key1,
char value1,
char key2,
char value2,
char key3,
char value3,
char key4,
char value4) |
CharCharHashMap |
withKeyValue(char key1,
char value1) |
CharCharHashMap |
withoutAllKeys(org.eclipse.collections.api.CharIterable keys) |
CharCharHashMap |
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 CharCharHashMap()
public CharCharHashMap(int initialCapacity)
public CharCharHashMap(org.eclipse.collections.api.map.primitive.CharCharMap map)
public static CharCharHashMap newWithKeysValues(char key1, char value1)
public static CharCharHashMap newWithKeysValues(char key1, char value1, char key2, char value2)
public static CharCharHashMap newWithKeysValues(char key1, char value1, char key2, char value2, char key3, char value3)
public static CharCharHashMap newWithKeysValues(char key1, char value1, char key2, char value2, char key3, char value3, char key4, char value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.CharCharMaptoString 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 MutableCharKeysMappublic void put(char key,
char value)
put in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic void putAll(org.eclipse.collections.api.map.primitive.CharCharMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic void removeKey(char key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableCharCharMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic char removeKeyIfAbsent(char key,
char value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic char getIfAbsentPut(char key,
char value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic char getIfAbsentPut(char key,
org.eclipse.collections.api.block.function.primitive.CharFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic <P> char getIfAbsentPutWith(char key,
org.eclipse.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic char getIfAbsentPutWithKey(char key,
org.eclipse.collections.api.block.function.primitive.CharToCharFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic char addToValue(char key,
char toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic char updateValue(char key,
char initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.CharToCharFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic CharCharHashMap withKeyValue(char key1, char value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic CharCharHashMap withKeysValues(char key1, char value1, char key2, char value2)
public CharCharHashMap withKeysValues(char key1, char value1, char key2, char value2, char key3, char value3)
public CharCharHashMap withKeysValues(char key1, char value1, char key2, char value2, char key3, char value3, char key4, char value4)
public CharCharHashMap withoutKey(char key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic CharCharHashMap withoutAllKeys(org.eclipse.collections.api.CharIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic org.eclipse.collections.api.map.primitive.MutableCharCharMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic org.eclipse.collections.api.map.primitive.MutableCharCharMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic org.eclipse.collections.api.map.primitive.ImmutableCharCharMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.CharCharMappublic char get(char key)
get in interface org.eclipse.collections.api.map.primitive.CharCharMappublic char getIfAbsent(char key,
char ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.CharCharMappublic char getOrThrow(char key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.CharCharMappublic boolean containsKey(char key)
containsKey in interface org.eclipse.collections.api.map.primitive.CharCharMapcontainsKey in interface CharKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.CharCharMapforEachKey in interface CharKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.CharCharProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.CharCharMappublic org.eclipse.collections.api.LazyCharIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.CharCharMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.CharCharPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.CharCharMappublic CharCharHashMap select(org.eclipse.collections.api.block.predicate.primitive.CharCharPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.CharCharMapselect in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic CharCharHashMap reject(org.eclipse.collections.api.block.predicate.primitive.CharCharPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.CharCharMapreject in interface org.eclipse.collections.api.map.primitive.MutableCharCharMappublic 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.CharCharMappublic org.eclipse.collections.api.collection.primitive.MutableCharCollection values()
values in interface org.eclipse.collections.api.map.primitive.CharValuesMapCopyright © 2004–2017. All rights reserved.