public class ShortCharHashMap extends AbstractMutableCharValuesMap implements MutableShortCharMap, Externalizable, MutableShortKeysMap
| Constructor and Description |
|---|
ShortCharHashMap() |
ShortCharHashMap(int initialCapacity) |
ShortCharHashMap(ShortCharMap map) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(short key,
char toBeAdded) |
MutableShortCharMap |
asSynchronized() |
MutableShortCharMap |
asUnmodifiable() |
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(Object obj) |
MutableCharShortMap |
flipUniqueValues() |
void |
forEachKey(ShortProcedure procedure) |
void |
forEachKeyValue(ShortCharProcedure procedure) |
char |
get(short key) |
char |
getAndPut(short key,
char putValue,
char defaultValue) |
char |
getIfAbsent(short key,
char ifAbsent) |
char |
getIfAbsentPut(short key,
char value) |
char |
getIfAbsentPut(short key,
CharFunction0 function) |
<P> char |
getIfAbsentPutWith(short key,
CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(short key,
ShortToCharFunction function) |
char |
getOrThrow(short key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectCharToObjectFunction<? super V,? extends V> function) |
MutableShortSet |
keySet() |
LazyShortIterable |
keysView() |
RichIterable<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(ShortCharMap map) |
void |
readExternal(ObjectInput in) |
ShortCharHashMap |
reject(ShortCharPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
char |
removeKeyIfAbsent(short key,
char value) |
ShortCharHashMap |
select(ShortCharPredicate predicate) |
ImmutableShortCharMap |
toImmutable() |
String |
toString() |
char |
updateValue(short key,
char initialValueIfAbsent,
CharToCharFunction function) |
void |
updateValues(ShortCharToCharFunction function) |
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(ShortIterable keys) |
ShortCharHashMap |
withoutKey(short key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArrayasLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListputPair, withAllKeyValuesinjectIntoKeyValuecollect, reject, selectcontainsValue, forEachValue, tapallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ShortCharHashMap()
public ShortCharHashMap(int initialCapacity)
public ShortCharHashMap(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)
public boolean equals(Object obj)
equals in interface ShortCharMapequals in class Objectpublic int hashCode()
hashCode in interface ShortCharMaphashCode in class Objectpublic String toString()
toString in interface ShortCharMaptoString in interface PrimitiveIterabletoString in class AbstractCharIterablepublic MutableCharIterator charIterator()
charIterator in interface CharIterablecharIterator in interface MutableCharValuesMappublic <V> V injectInto(V injectedValue,
ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto in interface CharIterablepublic void clear()
clear in interface MutableCharValuesMapclear in interface MutableShortKeysMappublic void put(short key,
char value)
put in interface MutableShortCharMappublic void putAll(ShortCharMap map)
putAll in interface MutableShortCharMappublic void updateValues(ShortCharToCharFunction function)
updateValues in interface MutableShortCharMappublic void removeKey(short key)
removeKey in interface MutableShortCharMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface MutableShortCharMappublic char removeKeyIfAbsent(short key,
char value)
removeKeyIfAbsent in interface MutableShortCharMappublic char getIfAbsentPut(short key,
char value)
getIfAbsentPut in interface MutableShortCharMappublic char getAndPut(short key,
char putValue,
char defaultValue)
getAndPut in interface MutableShortCharMappublic char getIfAbsentPut(short key,
CharFunction0 function)
getIfAbsentPut in interface MutableShortCharMappublic <P> char getIfAbsentPutWith(short key,
CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableShortCharMappublic char getIfAbsentPutWithKey(short key,
ShortToCharFunction function)
getIfAbsentPutWithKey in interface MutableShortCharMappublic char addToValue(short key,
char toBeAdded)
addToValue in interface MutableShortCharMappublic char updateValue(short key,
char initialValueIfAbsent,
CharToCharFunction function)
updateValue in interface MutableShortCharMappublic ShortCharHashMap withKeyValue(short key1, char value1)
withKeyValue in interface 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 MutableShortCharMappublic ShortCharHashMap withoutAllKeys(ShortIterable keys)
withoutAllKeys in interface MutableShortCharMappublic MutableShortCharMap asUnmodifiable()
asUnmodifiable in interface MutableShortCharMappublic MutableShortCharMap asSynchronized()
asSynchronized in interface MutableShortCharMappublic ImmutableShortCharMap toImmutable()
toImmutable in interface ShortCharMappublic char get(short key)
get in interface ShortCharMappublic char getIfAbsent(short key,
char ifAbsent)
getIfAbsent in interface ShortCharMappublic char getOrThrow(short key)
getOrThrow in interface ShortCharMappublic boolean containsKey(short key)
containsKey in interface ShortCharMapcontainsKey in interface ShortKeysMappublic void forEachKey(ShortProcedure procedure)
forEachKey in interface ShortCharMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(ShortCharProcedure procedure)
forEachKeyValue in interface ShortCharMappublic LazyShortIterable keysView()
keysView in interface ShortCharMappublic RichIterable<ShortCharPair> keyValuesView()
keyValuesView in interface ShortCharMappublic MutableCharShortMap flipUniqueValues()
flipUniqueValues in interface MutableShortCharMapflipUniqueValues in interface ShortCharMappublic ShortCharHashMap select(ShortCharPredicate predicate)
select in interface MutableShortCharMapselect in interface ShortCharMappublic ShortCharHashMap reject(ShortCharPredicate predicate)
reject in interface MutableShortCharMapreject in interface ShortCharMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableShortSet keySet()
keySet in interface ShortCharMappublic MutableCharCollection values()
values in interface CharValuesMapCopyright © 2004–2022. All rights reserved.