public class LongShortHashMap extends AbstractMutableShortValuesMap implements MutableLongShortMap, Externalizable, MutableLongKeysMap
| Constructor and Description |
|---|
LongShortHashMap() |
LongShortHashMap(int initialCapacity) |
LongShortHashMap(LongShortMap map) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(long key,
short toBeAdded) |
MutableLongShortMap |
asSynchronized() |
MutableLongShortMap |
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(long key) |
boolean |
equals(Object obj) |
MutableShortLongMap |
flipUniqueValues() |
void |
forEachKey(LongProcedure procedure) |
void |
forEachKeyValue(LongShortProcedure procedure) |
short |
get(long key) |
short |
getAndPut(long key,
short putValue,
short defaultValue) |
short |
getIfAbsent(long key,
short ifAbsent) |
short |
getIfAbsentPut(long key,
short value) |
short |
getIfAbsentPut(long key,
ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(long key,
ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(long key,
LongToShortFunction function) |
short |
getOrThrow(long key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectShortToObjectFunction<? super V,? extends V> function) |
MutableLongSet |
keySet() |
LazyLongIterable |
keysView() |
RichIterable<LongShortPair> |
keyValuesView() |
static LongShortHashMap |
newWithKeysValues(long key1,
short value1) |
static LongShortHashMap |
newWithKeysValues(long key1,
short value1,
long key2,
short value2) |
static LongShortHashMap |
newWithKeysValues(long key1,
short value1,
long key2,
short value2,
long key3,
short value3) |
static LongShortHashMap |
newWithKeysValues(long key1,
short value1,
long key2,
short value2,
long key3,
short value3,
long key4,
short value4) |
void |
put(long key,
short value) |
void |
putAll(LongShortMap map) |
void |
readExternal(ObjectInput in) |
LongShortHashMap |
reject(LongShortPredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
short |
removeKeyIfAbsent(long key,
short value) |
LongShortHashMap |
select(LongShortPredicate predicate) |
MutableShortIterator |
shortIterator() |
ImmutableLongShortMap |
toImmutable() |
String |
toString() |
short |
updateValue(long key,
short initialValueIfAbsent,
ShortToShortFunction function) |
void |
updateValues(LongShortToShortFunction function) |
MutableShortCollection |
values() |
LongShortHashMap |
withKeysValues(long key1,
short value1,
long key2,
short value2) |
LongShortHashMap |
withKeysValues(long key1,
short value1,
long key2,
short value2,
long key3,
short value3) |
LongShortHashMap |
withKeysValues(long key1,
short value1,
long key2,
short value2,
long key3,
short value3,
long key4,
short value4) |
LongShortHashMap |
withKeyValue(long key1,
short value1) |
LongShortHashMap |
withoutAllKeys(LongIterable keys) |
LongShortHashMap |
withoutKey(long 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 LongShortHashMap()
public LongShortHashMap(int initialCapacity)
public LongShortHashMap(LongShortMap map)
public static LongShortHashMap newWithKeysValues(long key1, short value1)
public static LongShortHashMap newWithKeysValues(long key1, short value1, long key2, short value2)
public static LongShortHashMap newWithKeysValues(long key1, short value1, long key2, short value2, long key3, short value3)
public static LongShortHashMap newWithKeysValues(long key1, short value1, long key2, short value2, long key3, short value3, long key4, short value4)
public boolean equals(Object obj)
equals in interface LongShortMapequals in class Objectpublic int hashCode()
hashCode in interface LongShortMaphashCode in class Objectpublic String toString()
toString in interface LongShortMaptoString 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 MutableLongKeysMappublic void put(long key,
short value)
put in interface MutableLongShortMappublic void putAll(LongShortMap map)
putAll in interface MutableLongShortMappublic void updateValues(LongShortToShortFunction function)
updateValues in interface MutableLongShortMappublic void removeKey(long key)
removeKey in interface MutableLongShortMapremoveKey in interface MutableLongKeysMappublic void remove(long key)
remove in interface MutableLongShortMappublic short removeKeyIfAbsent(long key,
short value)
removeKeyIfAbsent in interface MutableLongShortMappublic short getIfAbsentPut(long key,
short value)
getIfAbsentPut in interface MutableLongShortMappublic short getAndPut(long key,
short putValue,
short defaultValue)
getAndPut in interface MutableLongShortMappublic short getIfAbsentPut(long key,
ShortFunction0 function)
getIfAbsentPut in interface MutableLongShortMappublic <P> short getIfAbsentPutWith(long key,
ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableLongShortMappublic short getIfAbsentPutWithKey(long key,
LongToShortFunction function)
getIfAbsentPutWithKey in interface MutableLongShortMappublic short addToValue(long key,
short toBeAdded)
addToValue in interface MutableLongShortMappublic short updateValue(long key,
short initialValueIfAbsent,
ShortToShortFunction function)
updateValue in interface MutableLongShortMappublic LongShortHashMap withKeyValue(long key1, short value1)
withKeyValue in interface MutableLongShortMappublic LongShortHashMap withKeysValues(long key1, short value1, long key2, short value2)
public LongShortHashMap withKeysValues(long key1, short value1, long key2, short value2, long key3, short value3)
public LongShortHashMap withKeysValues(long key1, short value1, long key2, short value2, long key3, short value3, long key4, short value4)
public LongShortHashMap withoutKey(long key)
withoutKey in interface MutableLongShortMappublic LongShortHashMap withoutAllKeys(LongIterable keys)
withoutAllKeys in interface MutableLongShortMappublic MutableLongShortMap asUnmodifiable()
asUnmodifiable in interface MutableLongShortMappublic MutableLongShortMap asSynchronized()
asSynchronized in interface MutableLongShortMappublic ImmutableLongShortMap toImmutable()
toImmutable in interface LongShortMappublic short get(long key)
get in interface LongShortMappublic short getIfAbsent(long key,
short ifAbsent)
getIfAbsent in interface LongShortMappublic short getOrThrow(long key)
getOrThrow in interface LongShortMappublic boolean containsKey(long key)
containsKey in interface LongShortMapcontainsKey in interface LongKeysMappublic void forEachKey(LongProcedure procedure)
forEachKey in interface LongShortMapforEachKey in interface LongKeysMappublic void forEachKeyValue(LongShortProcedure procedure)
forEachKeyValue in interface LongShortMappublic LazyLongIterable keysView()
keysView in interface LongShortMappublic RichIterable<LongShortPair> keyValuesView()
keyValuesView in interface LongShortMappublic MutableShortLongMap flipUniqueValues()
flipUniqueValues in interface LongShortMapflipUniqueValues in interface MutableLongShortMappublic LongShortHashMap select(LongShortPredicate predicate)
select in interface LongShortMapselect in interface MutableLongShortMappublic LongShortHashMap reject(LongShortPredicate predicate)
reject in interface LongShortMapreject in interface MutableLongShortMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableLongSet keySet()
keySet in interface LongShortMappublic MutableShortCollection values()
values in interface ShortValuesMapCopyright © 2004–2022. All rights reserved.