public class ShortShortHashMap extends AbstractMutableShortValuesMap implements MutableShortShortMap, Externalizable, MutableShortKeysMap
| Constructor and Description |
|---|
ShortShortHashMap() |
ShortShortHashMap(int initialCapacity) |
ShortShortHashMap(ShortShortMap map) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(short key,
short toBeAdded) |
MutableShortShortMap |
asSynchronized() |
MutableShortShortMap |
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(short key) |
boolean |
equals(Object obj) |
MutableShortShortMap |
flipUniqueValues() |
void |
forEachKey(ShortProcedure procedure) |
void |
forEachKeyValue(ShortShortProcedure procedure) |
short |
get(short key) |
short |
getAndPut(short key,
short putValue,
short defaultValue) |
short |
getIfAbsent(short key,
short ifAbsent) |
short |
getIfAbsentPut(short key,
short value) |
short |
getIfAbsentPut(short key,
ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(short key,
ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(short key,
ShortToShortFunction function) |
short |
getOrThrow(short key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectShortToObjectFunction<? super V,? extends V> function) |
MutableShortSet |
keySet() |
LazyShortIterable |
keysView() |
RichIterable<ShortShortPair> |
keyValuesView() |
static ShortShortHashMap |
newWithKeysValues(short key1,
short value1) |
static ShortShortHashMap |
newWithKeysValues(short key1,
short value1,
short key2,
short value2) |
static ShortShortHashMap |
newWithKeysValues(short key1,
short value1,
short key2,
short value2,
short key3,
short value3) |
static ShortShortHashMap |
newWithKeysValues(short key1,
short value1,
short key2,
short value2,
short key3,
short value3,
short key4,
short value4) |
void |
put(short key,
short value) |
void |
putAll(ShortShortMap map) |
void |
readExternal(ObjectInput in) |
ShortShortHashMap |
reject(ShortShortPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
short |
removeKeyIfAbsent(short key,
short value) |
ShortShortHashMap |
select(ShortShortPredicate predicate) |
MutableShortIterator |
shortIterator() |
ImmutableShortShortMap |
toImmutable() |
String |
toString() |
short |
updateValue(short key,
short initialValueIfAbsent,
ShortToShortFunction function) |
void |
updateValues(ShortShortToShortFunction function) |
MutableShortCollection |
values() |
ShortShortHashMap |
withKeysValues(short key1,
short value1,
short key2,
short value2) |
ShortShortHashMap |
withKeysValues(short key1,
short value1,
short key2,
short value2,
short key3,
short value3) |
ShortShortHashMap |
withKeysValues(short key1,
short value1,
short key2,
short value2,
short key3,
short value3,
short key4,
short value4) |
ShortShortHashMap |
withKeyValue(short key1,
short value1) |
ShortShortHashMap |
withoutAllKeys(ShortIterable keys) |
ShortShortHashMap |
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 ShortShortHashMap()
public ShortShortHashMap(int initialCapacity)
public ShortShortHashMap(ShortShortMap map)
public static ShortShortHashMap newWithKeysValues(short key1, short value1)
public static ShortShortHashMap newWithKeysValues(short key1, short value1, short key2, short value2)
public static ShortShortHashMap newWithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3)
public static ShortShortHashMap newWithKeysValues(short key1, short value1, short key2, short value2, short key3, short value3, short key4, short value4)
public boolean equals(Object obj)
equals in interface ShortShortMapequals in class Objectpublic int hashCode()
hashCode in interface ShortShortMaphashCode in class Objectpublic String toString()
toString in interface ShortShortMaptoString 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 MutableShortKeysMappublic void put(short key,
short value)
put in interface MutableShortShortMappublic void putAll(ShortShortMap map)
putAll in interface MutableShortShortMappublic void updateValues(ShortShortToShortFunction function)
updateValues in interface MutableShortShortMappublic void removeKey(short key)
removeKey in interface MutableShortShortMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface MutableShortShortMappublic short removeKeyIfAbsent(short key,
short value)
removeKeyIfAbsent in interface MutableShortShortMappublic short getIfAbsentPut(short key,
short value)
getIfAbsentPut in interface MutableShortShortMappublic short getAndPut(short key,
short putValue,
short defaultValue)
getAndPut in interface MutableShortShortMappublic short getIfAbsentPut(short key,
ShortFunction0 function)
getIfAbsentPut in interface MutableShortShortMappublic <P> short getIfAbsentPutWith(short key,
ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableShortShortMappublic short getIfAbsentPutWithKey(short key,
ShortToShortFunction function)
getIfAbsentPutWithKey in interface MutableShortShortMappublic short addToValue(short key,
short toBeAdded)
addToValue in interface MutableShortShortMappublic short updateValue(short key,
short initialValueIfAbsent,
ShortToShortFunction function)
updateValue in interface MutableShortShortMappublic ShortShortHashMap withKeyValue(short key1, short value1)
withKeyValue in interface MutableShortShortMappublic ShortShortHashMap withKeysValues(short key1, short value1, short key2, short value2)
public ShortShortHashMap withKeysValues(short key1, short value1, short key2, short value2, short key3, short value3)
public ShortShortHashMap withKeysValues(short key1, short value1, short key2, short value2, short key3, short value3, short key4, short value4)
public ShortShortHashMap withoutKey(short key)
withoutKey in interface MutableShortShortMappublic ShortShortHashMap withoutAllKeys(ShortIterable keys)
withoutAllKeys in interface MutableShortShortMappublic MutableShortShortMap asUnmodifiable()
asUnmodifiable in interface MutableShortShortMappublic MutableShortShortMap asSynchronized()
asSynchronized in interface MutableShortShortMappublic ImmutableShortShortMap toImmutable()
toImmutable in interface ShortShortMappublic short get(short key)
get in interface ShortShortMappublic short getIfAbsent(short key,
short ifAbsent)
getIfAbsent in interface ShortShortMappublic short getOrThrow(short key)
getOrThrow in interface ShortShortMappublic boolean containsKey(short key)
containsKey in interface ShortShortMapcontainsKey in interface ShortKeysMappublic void forEachKey(ShortProcedure procedure)
forEachKey in interface ShortShortMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(ShortShortProcedure procedure)
forEachKeyValue in interface ShortShortMappublic LazyShortIterable keysView()
keysView in interface ShortShortMappublic RichIterable<ShortShortPair> keyValuesView()
keyValuesView in interface ShortShortMappublic MutableShortShortMap flipUniqueValues()
flipUniqueValues in interface MutableShortShortMapflipUniqueValues in interface ShortShortMappublic ShortShortHashMap select(ShortShortPredicate predicate)
select in interface MutableShortShortMapselect in interface ShortShortMappublic ShortShortHashMap reject(ShortShortPredicate predicate)
reject in interface MutableShortShortMapreject in interface ShortShortMappublic 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 ShortShortMappublic MutableShortCollection values()
values in interface ShortValuesMapCopyright © 2004–2022. All rights reserved.