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)
Follows the same general contract as
Map.equals(Object) . |
void |
forEachKey(IntProcedure procedure) |
void |
forEachKeyValue(IntLongProcedure procedure) |
long |
get(int key) |
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()
Follows the same general contract as
Map.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()
Returns a string representation of this PrimitiveIterable.
|
long |
updateValue(int key,
long initialValueIfAbsent,
LongToLongFunction 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, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArray
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
collect, reject, select
containsValue, forEachValue
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
isEmpty, notEmpty, size
public 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)
IntLongMap
Map.equals(Object)
.equals
in interface IntLongMap
equals
in class Object
public int hashCode()
IntLongMap
Map.hashCode()
.hashCode
in interface IntLongMap
hashCode
in class Object
public String toString()
PrimitiveIterable
toString
in interface IntLongMap
toString
in interface PrimitiveIterable
toString
in class AbstractLongIterable
public MutableLongIterator longIterator()
longIterator
in interface LongIterable
longIterator
in interface MutableLongValuesMap
public <V> V injectInto(V injectedValue, ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto
in interface LongIterable
public void clear()
clear
in interface MutableLongValuesMap
clear
in interface MutableIntKeysMap
public void put(int key, long value)
put
in interface MutableIntLongMap
public void putAll(IntLongMap map)
putAll
in interface MutableIntLongMap
public void removeKey(int key)
removeKey
in interface MutableIntLongMap
removeKey
in interface MutableIntKeysMap
public void remove(int key)
remove
in interface MutableIntLongMap
public long removeKeyIfAbsent(int key, long value)
removeKeyIfAbsent
in interface MutableIntLongMap
public long getIfAbsentPut(int key, long value)
getIfAbsentPut
in interface MutableIntLongMap
public long getIfAbsentPut(int key, LongFunction0 function)
getIfAbsentPut
in interface MutableIntLongMap
public <P> long getIfAbsentPutWith(int key, LongFunction<? super P> function, P parameter)
getIfAbsentPutWith
in interface MutableIntLongMap
public long getIfAbsentPutWithKey(int key, IntToLongFunction function)
getIfAbsentPutWithKey
in interface MutableIntLongMap
public long addToValue(int key, long toBeAdded)
addToValue
in interface MutableIntLongMap
public long updateValue(int key, long initialValueIfAbsent, LongToLongFunction function)
updateValue
in interface MutableIntLongMap
public IntLongHashMap withKeyValue(int key1, long value1)
withKeyValue
in interface MutableIntLongMap
public 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 MutableIntLongMap
public IntLongHashMap withoutAllKeys(IntIterable keys)
withoutAllKeys
in interface MutableIntLongMap
public MutableIntLongMap asUnmodifiable()
asUnmodifiable
in interface MutableIntLongMap
public MutableIntLongMap asSynchronized()
asSynchronized
in interface MutableIntLongMap
public ImmutableIntLongMap toImmutable()
toImmutable
in interface IntLongMap
public long get(int key)
get
in interface IntLongMap
public long getIfAbsent(int key, long ifAbsent)
getIfAbsent
in interface IntLongMap
public long getOrThrow(int key)
getOrThrow
in interface IntLongMap
public boolean containsKey(int key)
containsKey
in interface IntLongMap
containsKey
in interface IntKeysMap
public void forEachKey(IntProcedure procedure)
forEachKey
in interface IntLongMap
forEachKey
in interface IntKeysMap
public void forEachKeyValue(IntLongProcedure procedure)
forEachKeyValue
in interface IntLongMap
public LazyIntIterable keysView()
keysView
in interface IntLongMap
public RichIterable<IntLongPair> keyValuesView()
keyValuesView
in interface IntLongMap
public IntLongHashMap select(IntLongPredicate predicate)
select
in interface IntLongMap
select
in interface MutableIntLongMap
public IntLongHashMap reject(IntLongPredicate predicate)
reject
in interface IntLongMap
reject
in interface MutableIntLongMap
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void compact()
public MutableIntSet keySet()
keySet
in interface IntLongMap
public MutableLongCollection values()
values
in interface LongValuesMap
Copyright © 2004–2016. All rights reserved.