public class CharShortHashMap extends AbstractMutableShortValuesMap implements MutableCharShortMap, Externalizable, MutableCharKeysMap
| Constructor and Description |
|---|
CharShortHashMap() |
CharShortHashMap(CharShortMap map) |
CharShortHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(char key,
short toBeAdded) |
MutableCharShortMap |
asSynchronized() |
MutableCharShortMap |
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)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(CharProcedure procedure) |
void |
forEachKeyValue(CharShortProcedure procedure) |
short |
get(char key) |
short |
getIfAbsent(char key,
short ifAbsent) |
short |
getIfAbsentPut(char key,
short value) |
short |
getIfAbsentPut(char key,
ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(char key,
ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(char key,
CharToShortFunction function) |
short |
getOrThrow(char key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
ObjectShortToObjectFunction<? super V,? extends V> function) |
MutableCharSet |
keySet() |
LazyCharIterable |
keysView() |
RichIterable<CharShortPair> |
keyValuesView() |
static CharShortHashMap |
newWithKeysValues(char key1,
short value1) |
static CharShortHashMap |
newWithKeysValues(char key1,
short value1,
char key2,
short value2) |
static CharShortHashMap |
newWithKeysValues(char key1,
short value1,
char key2,
short value2,
char key3,
short value3) |
static CharShortHashMap |
newWithKeysValues(char key1,
short value1,
char key2,
short value2,
char key3,
short value3,
char key4,
short value4) |
void |
put(char key,
short value) |
void |
putAll(CharShortMap map) |
void |
readExternal(ObjectInput in) |
CharShortHashMap |
reject(CharShortPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
short |
removeKeyIfAbsent(char key,
short value) |
CharShortHashMap |
select(CharShortPredicate predicate) |
MutableShortIterator |
shortIterator() |
ImmutableCharShortMap |
toImmutable() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
short |
updateValue(char key,
short initialValueIfAbsent,
ShortToShortFunction function) |
MutableShortCollection |
values() |
CharShortHashMap |
withKeysValues(char key1,
short value1,
char key2,
short value2) |
CharShortHashMap |
withKeysValues(char key1,
short value1,
char key2,
short value2,
char key3,
short value3) |
CharShortHashMap |
withKeysValues(char key1,
short value1,
char key2,
short value2,
char key3,
short value3,
char key4,
short value4) |
CharShortHashMap |
withKeyValue(char key1,
short value1) |
CharShortHashMap |
withoutAllKeys(CharIterable keys) |
CharShortHashMap |
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 CharShortHashMap()
public CharShortHashMap(int initialCapacity)
public CharShortHashMap(CharShortMap map)
public static CharShortHashMap newWithKeysValues(char key1, short value1)
public static CharShortHashMap newWithKeysValues(char key1, short value1, char key2, short value2)
public static CharShortHashMap newWithKeysValues(char key1, short value1, char key2, short value2, char key3, short value3)
public static CharShortHashMap newWithKeysValues(char key1, short value1, char key2, short value2, char key3, short value3, char key4, short value4)
public boolean equals(Object obj)
CharShortMapMap.equals(Object).equals in interface CharShortMapequals in class Objectpublic int hashCode()
CharShortMapMap.hashCode().hashCode in interface CharShortMaphashCode in class Objectpublic String toString()
PrimitiveIterabletoString in interface CharShortMaptoString in interface PrimitiveIterabletoString in class AbstractShortIterablepublic MutableShortIterator shortIterator()
shortIterator in interface MutableShortValuesMapshortIterator in interface ShortIterablepublic <V> V injectInto(V injectedValue,
ObjectShortToObjectFunction<? super V,? extends V> function)
injectInto in interface ShortIterablepublic void clear()
clear in interface MutableShortValuesMapclear in interface MutableCharKeysMappublic void put(char key,
short value)
put in interface MutableCharShortMappublic void putAll(CharShortMap map)
putAll in interface MutableCharShortMappublic void removeKey(char key)
removeKey in interface MutableCharShortMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface MutableCharShortMappublic short removeKeyIfAbsent(char key,
short value)
removeKeyIfAbsent in interface MutableCharShortMappublic short getIfAbsentPut(char key,
short value)
getIfAbsentPut in interface MutableCharShortMappublic short getIfAbsentPut(char key,
ShortFunction0 function)
getIfAbsentPut in interface MutableCharShortMappublic <P> short getIfAbsentPutWith(char key,
ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableCharShortMappublic short getIfAbsentPutWithKey(char key,
CharToShortFunction function)
getIfAbsentPutWithKey in interface MutableCharShortMappublic short addToValue(char key,
short toBeAdded)
addToValue in interface MutableCharShortMappublic short updateValue(char key,
short initialValueIfAbsent,
ShortToShortFunction function)
updateValue in interface MutableCharShortMappublic CharShortHashMap withKeyValue(char key1, short value1)
withKeyValue in interface MutableCharShortMappublic CharShortHashMap withKeysValues(char key1, short value1, char key2, short value2)
public CharShortHashMap withKeysValues(char key1, short value1, char key2, short value2, char key3, short value3)
public CharShortHashMap withKeysValues(char key1, short value1, char key2, short value2, char key3, short value3, char key4, short value4)
public CharShortHashMap withoutKey(char key)
withoutKey in interface MutableCharShortMappublic CharShortHashMap withoutAllKeys(CharIterable keys)
withoutAllKeys in interface MutableCharShortMappublic MutableCharShortMap asUnmodifiable()
asUnmodifiable in interface MutableCharShortMappublic MutableCharShortMap asSynchronized()
asSynchronized in interface MutableCharShortMappublic ImmutableCharShortMap toImmutable()
toImmutable in interface CharShortMappublic short get(char key)
get in interface CharShortMappublic short getIfAbsent(char key,
short ifAbsent)
getIfAbsent in interface CharShortMappublic short getOrThrow(char key)
getOrThrow in interface CharShortMappublic boolean containsKey(char key)
containsKey in interface CharShortMapcontainsKey in interface CharKeysMappublic void forEachKey(CharProcedure procedure)
forEachKey in interface CharShortMapforEachKey in interface CharKeysMappublic void forEachKeyValue(CharShortProcedure procedure)
forEachKeyValue in interface CharShortMappublic LazyCharIterable keysView()
keysView in interface CharShortMappublic RichIterable<CharShortPair> keyValuesView()
keyValuesView in interface CharShortMappublic CharShortHashMap select(CharShortPredicate predicate)
select in interface CharShortMapselect in interface MutableCharShortMappublic CharShortHashMap reject(CharShortPredicate predicate)
reject in interface CharShortMapreject in interface MutableCharShortMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableCharSet keySet()
keySet in interface CharShortMappublic MutableShortCollection values()
values in interface ShortValuesMapCopyright © 2004–2016. All rights reserved.