public class CharCharHashMap extends AbstractMutableCharValuesMap implements com.gs.collections.api.map.primitive.MutableCharCharMap, java.io.Externalizable, MutableCharKeysMap
AbstractMutableCharValuesMap.AbstractCharValuesCollection, AbstractMutableCharValuesMap.SentinelValues| Constructor and Description |
|---|
CharCharHashMap() |
CharCharHashMap(com.gs.collections.api.map.primitive.CharCharMap map) |
CharCharHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(char key,
char toBeAdded) |
com.gs.collections.api.map.primitive.MutableCharCharMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableCharCharMap |
asUnmodifiable() |
com.gs.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(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.CharCharProcedure procedure) |
char |
get(char key) |
protected char |
getEmptyValue() |
char |
getIfAbsent(char key,
char ifAbsent) |
char |
getIfAbsentPut(char key,
char value) |
char |
getIfAbsentPut(char key,
com.gs.collections.api.block.function.primitive.CharFunction0 function) |
<P> char |
getIfAbsentPutWith(char key,
com.gs.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(char key,
com.gs.collections.api.block.function.primitive.CharToCharFunction function) |
protected int |
getOccupiedWithData() |
char |
getOrThrow(char key) |
protected AbstractMutableCharValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected char |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableCharSet |
keySet() |
com.gs.collections.api.LazyCharIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.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(com.gs.collections.api.map.primitive.CharCharMap map) |
void |
readExternal(java.io.ObjectInput in) |
CharCharHashMap |
reject(com.gs.collections.api.block.predicate.primitive.CharCharPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
char |
removeKeyIfAbsent(char key,
char value) |
CharCharHashMap |
select(com.gs.collections.api.block.predicate.primitive.CharCharPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableCharCharMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
char |
updateValue(char key,
char initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.CharToCharFunction function) |
com.gs.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(com.gs.collections.api.CharIterable keys) |
CharCharHashMap |
withoutKey(char key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, 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(com.gs.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)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableCharValuesMapprotected AbstractMutableCharValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableCharValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableCharValuesMapprotected char getEmptyValue()
getEmptyValue in class AbstractMutableCharValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableCharValuesMapprotected char getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableCharValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.CharCharMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.CharCharMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.CharCharMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.CharCharMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.CharCharMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractCharIterablepublic com.gs.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface com.gs.collections.api.CharIterablecharIterator in interface com.gs.collections.api.map.primitive.MutableCharValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.CharIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableCharValuesMapclear in interface MutableCharKeysMappublic void put(char key,
char value)
put in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic void putAll(com.gs.collections.api.map.primitive.CharCharMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic void removeKey(char key)
removeKey in interface com.gs.collections.api.map.primitive.MutableCharCharMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic char removeKeyIfAbsent(char key,
char value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic char getIfAbsentPut(char key,
char value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic char getIfAbsentPut(char key,
com.gs.collections.api.block.function.primitive.CharFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic <P> char getIfAbsentPutWith(char key,
com.gs.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic char getIfAbsentPutWithKey(char key,
com.gs.collections.api.block.function.primitive.CharToCharFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic char addToValue(char key,
char toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic char updateValue(char key,
char initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.CharToCharFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic CharCharHashMap withKeyValue(char key1, char value1)
withKeyValue in interface com.gs.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 com.gs.collections.api.map.primitive.MutableCharCharMappublic CharCharHashMap withoutAllKeys(com.gs.collections.api.CharIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic com.gs.collections.api.map.primitive.MutableCharCharMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic com.gs.collections.api.map.primitive.MutableCharCharMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic com.gs.collections.api.map.primitive.ImmutableCharCharMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.CharCharMappublic char get(char key)
get in interface com.gs.collections.api.map.primitive.CharCharMappublic char getIfAbsent(char key,
char ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.CharCharMappublic char getOrThrow(char key)
getOrThrow in interface com.gs.collections.api.map.primitive.CharCharMappublic boolean containsKey(char key)
containsKey in interface com.gs.collections.api.map.primitive.CharCharMapcontainsKey in interface CharKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.CharCharMapforEachKey in interface CharKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.CharCharProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.CharCharMappublic com.gs.collections.api.LazyCharIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.CharCharMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.CharCharPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.CharCharMappublic CharCharHashMap select(com.gs.collections.api.block.predicate.primitive.CharCharPredicate predicate)
select in interface com.gs.collections.api.map.primitive.CharCharMapselect in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic CharCharHashMap reject(com.gs.collections.api.block.predicate.primitive.CharCharPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.CharCharMapreject in interface com.gs.collections.api.map.primitive.MutableCharCharMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void compact()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableCharValuesMappublic com.gs.collections.api.set.primitive.MutableCharSet keySet()
keySet in interface com.gs.collections.api.map.primitive.CharCharMappublic com.gs.collections.api.collection.primitive.MutableCharCollection values()
values in interface com.gs.collections.api.map.primitive.CharValuesMap