public class IntLongHashMap extends AbstractMutableLongValuesMap implements MutableIntLongMap, Externalizable, MutableIntKeysMap
| Constructor and Description |
|---|
IntLongHashMap() |
IntLongHashMap(int initialCapacity) |
IntLongHashMap(IntLongMap map) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(int key,
long toBeAdded) |
MutableIntLongMap |
asSynchronized() |
MutableIntLongMap |
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(int key) |
boolean |
equals(Object obj) |
MutableLongIntMap |
flipUniqueValues() |
void |
forEachKey(IntProcedure procedure) |
void |
forEachKeyValue(IntLongProcedure procedure) |
long |
get(int key) |
long |
getAndPut(int key,
long putValue,
long defaultValue) |
long |
getIfAbsent(int key,
long ifAbsent) |
long |
getIfAbsentPut(int key,
long value) |
long |
getIfAbsentPut(int key,
LongFunction0 function) |
<P> long |
getIfAbsentPutWith(int key,
LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(int key,
IntToLongFunction function) |
long |
getOrThrow(int key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function) |
MutableIntSet |
keySet() |
LazyIntIterable |
keysView() |
RichIterable<IntLongPair> |
keyValuesView() |
MutableLongIterator |
longIterator() |
static IntLongHashMap |
newWithKeysValues(int key1,
long value1) |
static IntLongHashMap |
newWithKeysValues(int key1,
long value1,
int key2,
long value2) |
static IntLongHashMap |
newWithKeysValues(int key1,
long value1,
int key2,
long value2,
int key3,
long value3) |
static IntLongHashMap |
newWithKeysValues(int key1,
long value1,
int key2,
long value2,
int key3,
long value3,
int key4,
long value4) |
void |
put(int key,
long value) |
void |
putAll(IntLongMap map) |
void |
readExternal(ObjectInput in) |
IntLongHashMap |
reject(IntLongPredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
long |
removeKeyIfAbsent(int key,
long value) |
IntLongHashMap |
select(IntLongPredicate predicate) |
ImmutableIntLongMap |
toImmutable() |
String |
toString() |
long |
updateValue(int key,
long initialValueIfAbsent,
LongToLongFunction function) |
void |
updateValues(IntLongToLongFunction function) |
MutableLongCollection |
values() |
IntLongHashMap |
withKeysValues(int key1,
long value1,
int key2,
long value2) |
IntLongHashMap |
withKeysValues(int key1,
long value1,
int key2,
long value2,
int key3,
long value3) |
IntLongHashMap |
withKeysValues(int key1,
long value1,
int key2,
long value2,
int key3,
long value3,
int key4,
long value4) |
IntLongHashMap |
withKeyValue(int key1,
long value1) |
IntLongHashMap |
withoutAllKeys(IntIterable keys) |
IntLongHashMap |
withoutKey(int 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 IntLongHashMap()
public IntLongHashMap(int initialCapacity)
public IntLongHashMap(IntLongMap map)
public static IntLongHashMap newWithKeysValues(int key1, long value1)
public static IntLongHashMap newWithKeysValues(int key1, long value1, int key2, long value2)
public static IntLongHashMap newWithKeysValues(int key1, long value1, int key2, long value2, int key3, long value3)
public static IntLongHashMap newWithKeysValues(int key1, long value1, int key2, long value2, int key3, long value3, int key4, long value4)
public boolean equals(Object obj)
equals in interface IntLongMapequals in class Objectpublic int hashCode()
hashCode in interface IntLongMaphashCode in class Objectpublic String toString()
toString in interface IntLongMaptoString 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 MutableIntKeysMappublic void put(int key,
long value)
put in interface MutableIntLongMappublic void putAll(IntLongMap map)
putAll in interface MutableIntLongMappublic void updateValues(IntLongToLongFunction function)
updateValues in interface MutableIntLongMappublic void removeKey(int key)
removeKey in interface MutableIntLongMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface MutableIntLongMappublic long removeKeyIfAbsent(int key,
long value)
removeKeyIfAbsent in interface MutableIntLongMappublic long getIfAbsentPut(int key,
long value)
getIfAbsentPut in interface MutableIntLongMappublic long getAndPut(int key,
long putValue,
long defaultValue)
getAndPut in interface MutableIntLongMappublic long getIfAbsentPut(int key,
LongFunction0 function)
getIfAbsentPut in interface MutableIntLongMappublic <P> long getIfAbsentPutWith(int key,
LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableIntLongMappublic long getIfAbsentPutWithKey(int key,
IntToLongFunction function)
getIfAbsentPutWithKey in interface MutableIntLongMappublic long addToValue(int key,
long toBeAdded)
addToValue in interface MutableIntLongMappublic long updateValue(int key,
long initialValueIfAbsent,
LongToLongFunction function)
updateValue in interface MutableIntLongMappublic IntLongHashMap withKeyValue(int key1, long value1)
withKeyValue in interface MutableIntLongMappublic IntLongHashMap withKeysValues(int key1, long value1, int key2, long value2)
public IntLongHashMap withKeysValues(int key1, long value1, int key2, long value2, int key3, long value3)
public IntLongHashMap withKeysValues(int key1, long value1, int key2, long value2, int key3, long value3, int key4, long value4)
public IntLongHashMap withoutKey(int key)
withoutKey in interface MutableIntLongMappublic IntLongHashMap withoutAllKeys(IntIterable keys)
withoutAllKeys in interface MutableIntLongMappublic MutableIntLongMap asUnmodifiable()
asUnmodifiable in interface MutableIntLongMappublic MutableIntLongMap asSynchronized()
asSynchronized in interface MutableIntLongMappublic ImmutableIntLongMap toImmutable()
toImmutable in interface IntLongMappublic long get(int key)
get in interface IntLongMappublic long getIfAbsent(int key,
long ifAbsent)
getIfAbsent in interface IntLongMappublic long getOrThrow(int key)
getOrThrow in interface IntLongMappublic boolean containsKey(int key)
containsKey in interface IntLongMapcontainsKey in interface IntKeysMappublic void forEachKey(IntProcedure procedure)
forEachKey in interface IntLongMapforEachKey in interface IntKeysMappublic void forEachKeyValue(IntLongProcedure procedure)
forEachKeyValue in interface IntLongMappublic LazyIntIterable keysView()
keysView in interface IntLongMappublic RichIterable<IntLongPair> keyValuesView()
keyValuesView in interface IntLongMappublic MutableLongIntMap flipUniqueValues()
flipUniqueValues in interface IntLongMapflipUniqueValues in interface MutableIntLongMappublic IntLongHashMap select(IntLongPredicate predicate)
select in interface IntLongMapselect in interface MutableIntLongMappublic IntLongHashMap reject(IntLongPredicate predicate)
reject in interface IntLongMapreject in interface MutableIntLongMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableIntSet keySet()
keySet in interface IntLongMappublic MutableLongCollection values()
values in interface LongValuesMapCopyright © 2004–2022. All rights reserved.