public class ShortCharHashMap extends AbstractMutableCharValuesMap implements com.gs.collections.api.map.primitive.MutableShortCharMap, java.io.Externalizable, MutableShortKeysMap
AbstractMutableCharValuesMap.AbstractCharValuesCollection, AbstractMutableCharValuesMap.SentinelValues| Constructor and Description |
|---|
ShortCharHashMap() |
ShortCharHashMap(int initialCapacity) |
ShortCharHashMap(com.gs.collections.api.map.primitive.ShortCharMap map) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(short key,
char toBeAdded) |
com.gs.collections.api.map.primitive.MutableShortCharMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableShortCharMap |
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(short 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.ShortProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ShortCharProcedure procedure) |
char |
get(short key) |
protected char |
getEmptyValue() |
char |
getIfAbsent(short key,
char ifAbsent) |
char |
getIfAbsentPut(short key,
char value) |
char |
getIfAbsentPut(short key,
com.gs.collections.api.block.function.primitive.CharFunction0 function) |
<P> char |
getIfAbsentPutWith(short key,
com.gs.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(short key,
com.gs.collections.api.block.function.primitive.ShortToCharFunction function) |
protected int |
getOccupiedWithData() |
char |
getOrThrow(short 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.MutableShortSet |
keySet() |
com.gs.collections.api.LazyShortIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ShortCharPair> |
keyValuesView() |
static ShortCharHashMap |
newWithKeysValues(short key1,
char value1) |
static ShortCharHashMap |
newWithKeysValues(short key1,
char value1,
short key2,
char value2) |
static ShortCharHashMap |
newWithKeysValues(short key1,
char value1,
short key2,
char value2,
short key3,
char value3) |
static ShortCharHashMap |
newWithKeysValues(short key1,
char value1,
short key2,
char value2,
short key3,
char value3,
short key4,
char value4) |
void |
put(short key,
char value) |
void |
putAll(com.gs.collections.api.map.primitive.ShortCharMap map) |
void |
readExternal(java.io.ObjectInput in) |
ShortCharHashMap |
reject(com.gs.collections.api.block.predicate.primitive.ShortCharPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
char |
removeKeyIfAbsent(short key,
char value) |
ShortCharHashMap |
select(com.gs.collections.api.block.predicate.primitive.ShortCharPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableShortCharMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
char |
updateValue(short key,
char initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.CharToCharFunction function) |
com.gs.collections.api.collection.primitive.MutableCharCollection |
values() |
ShortCharHashMap |
withKeysValues(short key1,
char value1,
short key2,
char value2) |
ShortCharHashMap |
withKeysValues(short key1,
char value1,
short key2,
char value2,
short key3,
char value3) |
ShortCharHashMap |
withKeysValues(short key1,
char value1,
short key2,
char value2,
short key3,
char value3,
short key4,
char value4) |
ShortCharHashMap |
withKeyValue(short key1,
char value1) |
ShortCharHashMap |
withoutAllKeys(com.gs.collections.api.ShortIterable keys) |
ShortCharHashMap |
withoutKey(short 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 ShortCharHashMap()
public ShortCharHashMap(int initialCapacity)
public ShortCharHashMap(com.gs.collections.api.map.primitive.ShortCharMap map)
public static ShortCharHashMap newWithKeysValues(short key1, char value1)
public static ShortCharHashMap newWithKeysValues(short key1, char value1, short key2, char value2)
public static ShortCharHashMap newWithKeysValues(short key1, char value1, short key2, char value2, short key3, char value3)
public static ShortCharHashMap newWithKeysValues(short key1, char value1, short key2, char value2, short key3, char value3, short 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.ShortCharMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.ShortCharMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.ShortCharMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.ShortCharMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.ShortCharMaptoString 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 MutableShortKeysMappublic void put(short key,
char value)
put in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic void putAll(com.gs.collections.api.map.primitive.ShortCharMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic void removeKey(short key)
removeKey in interface com.gs.collections.api.map.primitive.MutableShortCharMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic char removeKeyIfAbsent(short key,
char value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic char getIfAbsentPut(short key,
char value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic char getIfAbsentPut(short key,
com.gs.collections.api.block.function.primitive.CharFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic <P> char getIfAbsentPutWith(short key,
com.gs.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic char getIfAbsentPutWithKey(short key,
com.gs.collections.api.block.function.primitive.ShortToCharFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic char addToValue(short key,
char toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic char updateValue(short key,
char initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.CharToCharFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic ShortCharHashMap withKeyValue(short key1, char value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic ShortCharHashMap withKeysValues(short key1, char value1, short key2, char value2)
public ShortCharHashMap withKeysValues(short key1, char value1, short key2, char value2, short key3, char value3)
public ShortCharHashMap withKeysValues(short key1, char value1, short key2, char value2, short key3, char value3, short key4, char value4)
public ShortCharHashMap withoutKey(short key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic ShortCharHashMap withoutAllKeys(com.gs.collections.api.ShortIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic com.gs.collections.api.map.primitive.MutableShortCharMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic com.gs.collections.api.map.primitive.MutableShortCharMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableShortCharMappublic com.gs.collections.api.map.primitive.ImmutableShortCharMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.ShortCharMappublic char get(short key)
get in interface com.gs.collections.api.map.primitive.ShortCharMappublic char getIfAbsent(short key,
char ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.ShortCharMappublic char getOrThrow(short key)
getOrThrow in interface com.gs.collections.api.map.primitive.ShortCharMappublic boolean containsKey(short key)
containsKey in interface com.gs.collections.api.map.primitive.ShortCharMapcontainsKey in interface ShortKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.ShortCharMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ShortCharProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.ShortCharMappublic com.gs.collections.api.LazyShortIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.ShortCharMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ShortCharPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.ShortCharMappublic ShortCharHashMap select(com.gs.collections.api.block.predicate.primitive.ShortCharPredicate predicate)
select in interface com.gs.collections.api.map.primitive.MutableShortCharMapselect in interface com.gs.collections.api.map.primitive.ShortCharMappublic ShortCharHashMap reject(com.gs.collections.api.block.predicate.primitive.ShortCharPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.MutableShortCharMapreject in interface com.gs.collections.api.map.primitive.ShortCharMappublic 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.MutableShortSet keySet()
keySet in interface com.gs.collections.api.map.primitive.ShortCharMappublic com.gs.collections.api.collection.primitive.MutableCharCollection values()
values in interface com.gs.collections.api.map.primitive.CharValuesMap