public class LongLongHashMap extends AbstractMutableLongValuesMap implements MutableLongLongMap, Externalizable, MutableLongKeysMap
| Constructor and Description |
|---|
LongLongHashMap() |
LongLongHashMap(int initialCapacity) |
LongLongHashMap(LongLongMap map) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(long key,
long toBeAdded) |
MutableLongLongMap |
asSynchronized() |
MutableLongLongMap |
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) |
MutableLongLongMap |
flipUniqueValues() |
void |
forEachKey(LongProcedure procedure) |
void |
forEachKeyValue(LongLongProcedure procedure) |
long |
get(long key) |
long |
getAndPut(long key,
long putValue,
long defaultValue) |
long |
getIfAbsent(long key,
long ifAbsent) |
long |
getIfAbsentPut(long key,
long value) |
long |
getIfAbsentPut(long key,
LongFunction0 function) |
<P> long |
getIfAbsentPutWith(long key,
LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(long key,
LongToLongFunction function) |
long |
getOrThrow(long key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function) |
MutableLongSet |
keySet() |
LazyLongIterable |
keysView() |
RichIterable<LongLongPair> |
keyValuesView() |
MutableLongIterator |
longIterator() |
static LongLongHashMap |
newWithKeysValues(long key1,
long value1) |
static LongLongHashMap |
newWithKeysValues(long key1,
long value1,
long key2,
long value2) |
static LongLongHashMap |
newWithKeysValues(long key1,
long value1,
long key2,
long value2,
long key3,
long value3) |
static LongLongHashMap |
newWithKeysValues(long key1,
long value1,
long key2,
long value2,
long key3,
long value3,
long key4,
long value4) |
void |
put(long key,
long value) |
void |
putAll(LongLongMap map) |
void |
readExternal(ObjectInput in) |
LongLongHashMap |
reject(LongLongPredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
long |
removeKeyIfAbsent(long key,
long value) |
LongLongHashMap |
select(LongLongPredicate predicate) |
ImmutableLongLongMap |
toImmutable() |
String |
toString() |
long |
updateValue(long key,
long initialValueIfAbsent,
LongToLongFunction function) |
void |
updateValues(LongLongToLongFunction function) |
MutableLongCollection |
values() |
LongLongHashMap |
withKeysValues(long key1,
long value1,
long key2,
long value2) |
LongLongHashMap |
withKeysValues(long key1,
long value1,
long key2,
long value2,
long key3,
long value3) |
LongLongHashMap |
withKeysValues(long key1,
long value1,
long key2,
long value2,
long key3,
long value3,
long key4,
long value4) |
LongLongHashMap |
withKeyValue(long key1,
long value1) |
LongLongHashMap |
withoutAllKeys(LongIterable keys) |
LongLongHashMap |
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 LongLongHashMap()
public LongLongHashMap(int initialCapacity)
public LongLongHashMap(LongLongMap map)
public static LongLongHashMap newWithKeysValues(long key1, long value1)
public static LongLongHashMap newWithKeysValues(long key1, long value1, long key2, long value2)
public static LongLongHashMap newWithKeysValues(long key1, long value1, long key2, long value2, long key3, long value3)
public static LongLongHashMap newWithKeysValues(long key1, long value1, long key2, long value2, long key3, long value3, long key4, long value4)
public boolean equals(Object obj)
equals in interface LongLongMapequals in class Objectpublic int hashCode()
hashCode in interface LongLongMaphashCode in class Objectpublic String toString()
toString in interface LongLongMaptoString in interface PrimitiveIterabletoString in class AbstractLongIterablepublic MutableLongIterator longIterator()
longIterator in interface LongIterablelongIterator in interface MutableLongValuesMappublic <V> V injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface LongIterablepublic void clear()
clear in interface MutableLongValuesMapclear in interface MutableLongKeysMappublic void put(long key,
long value)
put in interface MutableLongLongMappublic void putAll(LongLongMap map)
putAll in interface MutableLongLongMappublic void updateValues(LongLongToLongFunction function)
updateValues in interface MutableLongLongMappublic void removeKey(long key)
removeKey in interface MutableLongLongMapremoveKey in interface MutableLongKeysMappublic void remove(long key)
remove in interface MutableLongLongMappublic long removeKeyIfAbsent(long key,
long value)
removeKeyIfAbsent in interface MutableLongLongMappublic long getIfAbsentPut(long key,
long value)
getIfAbsentPut in interface MutableLongLongMappublic long getAndPut(long key,
long putValue,
long defaultValue)
getAndPut in interface MutableLongLongMappublic long getIfAbsentPut(long key,
LongFunction0 function)
getIfAbsentPut in interface MutableLongLongMappublic <P> long getIfAbsentPutWith(long key,
LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableLongLongMappublic long getIfAbsentPutWithKey(long key,
LongToLongFunction function)
getIfAbsentPutWithKey in interface MutableLongLongMappublic long addToValue(long key,
long toBeAdded)
addToValue in interface MutableLongLongMappublic long updateValue(long key,
long initialValueIfAbsent,
LongToLongFunction function)
updateValue in interface MutableLongLongMappublic LongLongHashMap withKeyValue(long key1, long value1)
withKeyValue in interface MutableLongLongMappublic LongLongHashMap withKeysValues(long key1, long value1, long key2, long value2)
public LongLongHashMap withKeysValues(long key1, long value1, long key2, long value2, long key3, long value3)
public LongLongHashMap withKeysValues(long key1, long value1, long key2, long value2, long key3, long value3, long key4, long value4)
public LongLongHashMap withoutKey(long key)
withoutKey in interface MutableLongLongMappublic LongLongHashMap withoutAllKeys(LongIterable keys)
withoutAllKeys in interface MutableLongLongMappublic MutableLongLongMap asUnmodifiable()
asUnmodifiable in interface MutableLongLongMappublic MutableLongLongMap asSynchronized()
asSynchronized in interface MutableLongLongMappublic ImmutableLongLongMap toImmutable()
toImmutable in interface LongLongMappublic long get(long key)
get in interface LongLongMappublic long getIfAbsent(long key,
long ifAbsent)
getIfAbsent in interface LongLongMappublic long getOrThrow(long key)
getOrThrow in interface LongLongMappublic boolean containsKey(long key)
containsKey in interface LongLongMapcontainsKey in interface LongKeysMappublic void forEachKey(LongProcedure procedure)
forEachKey in interface LongLongMapforEachKey in interface LongKeysMappublic void forEachKeyValue(LongLongProcedure procedure)
forEachKeyValue in interface LongLongMappublic LazyLongIterable keysView()
keysView in interface LongLongMappublic RichIterable<LongLongPair> keyValuesView()
keyValuesView in interface LongLongMappublic MutableLongLongMap flipUniqueValues()
flipUniqueValues in interface LongLongMapflipUniqueValues in interface MutableLongLongMappublic LongLongHashMap select(LongLongPredicate predicate)
select in interface LongLongMapselect in interface MutableLongLongMappublic LongLongHashMap reject(LongLongPredicate predicate)
reject in interface LongLongMapreject in interface MutableLongLongMappublic 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 LongLongMappublic MutableLongCollection values()
values in interface LongValuesMapCopyright © 2004–2022. All rights reserved.