public class IntLongHashMap extends AbstractMutableLongValuesMap implements org.eclipse.collections.api.map.primitive.MutableIntLongMap, Externalizable, MutableIntKeysMap
| Constructor and Description |
|---|
IntLongHashMap() |
IntLongHashMap(int initialCapacity) |
IntLongHashMap(org.eclipse.collections.api.map.primitive.IntLongMap map) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(int key,
long toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableIntLongMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.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) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.IntLongProcedure procedure) |
long |
get(int key) |
long |
getIfAbsent(int key,
long ifAbsent) |
long |
getIfAbsentPut(int key,
long value) |
long |
getIfAbsentPut(int key,
org.eclipse.collections.api.block.function.primitive.LongFunction0 function) |
<P> long |
getIfAbsentPutWith(int key,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(int key,
org.eclipse.collections.api.block.function.primitive.IntToLongFunction function) |
long |
getOrThrow(int key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.set.primitive.MutableIntSet |
keySet() |
org.eclipse.collections.api.LazyIntIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.IntLongPair> |
keyValuesView() |
org.eclipse.collections.api.iterator.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(org.eclipse.collections.api.map.primitive.IntLongMap map) |
void |
readExternal(ObjectInput in) |
IntLongHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.IntLongPredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
long |
removeKeyIfAbsent(int key,
long value) |
IntLongHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.IntLongPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableIntLongMap |
toImmutable() |
String |
toString() |
long |
updateValue(int key,
long initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function) |
org.eclipse.collections.api.collection.primitive.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(org.eclipse.collections.api.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, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic IntLongHashMap()
public IntLongHashMap(int initialCapacity)
public IntLongHashMap(org.eclipse.collections.api.map.primitive.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)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.IntLongMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractLongIterablepublic org.eclipse.collections.api.iterator.MutableLongIterator longIterator()
longIterator in interface org.eclipse.collections.api.LongIterablelongIterator in interface org.eclipse.collections.api.map.primitive.MutableLongValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.LongIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableLongValuesMapclear in interface MutableIntKeysMappublic void put(int key,
long value)
put in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic void putAll(org.eclipse.collections.api.map.primitive.IntLongMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic void removeKey(int key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableIntLongMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic long removeKeyIfAbsent(int key,
long value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic long getIfAbsentPut(int key,
long value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic long getIfAbsentPut(int key,
org.eclipse.collections.api.block.function.primitive.LongFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic <P> long getIfAbsentPutWith(int key,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic long getIfAbsentPutWithKey(int key,
org.eclipse.collections.api.block.function.primitive.IntToLongFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic long addToValue(int key,
long toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic long updateValue(int key,
long initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic IntLongHashMap withKeyValue(int key1, long value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.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 org.eclipse.collections.api.map.primitive.MutableIntLongMappublic IntLongHashMap withoutAllKeys(org.eclipse.collections.api.IntIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic org.eclipse.collections.api.map.primitive.MutableIntLongMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic org.eclipse.collections.api.map.primitive.MutableIntLongMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic org.eclipse.collections.api.map.primitive.ImmutableIntLongMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.IntLongMappublic long get(int key)
get in interface org.eclipse.collections.api.map.primitive.IntLongMappublic long getIfAbsent(int key,
long ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.IntLongMappublic long getOrThrow(int key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.IntLongMappublic boolean containsKey(int key)
containsKey in interface org.eclipse.collections.api.map.primitive.IntLongMapcontainsKey in interface IntKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.IntLongMapforEachKey in interface IntKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.IntLongProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.IntLongMappublic org.eclipse.collections.api.LazyIntIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.IntLongMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.IntLongPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.IntLongMappublic IntLongHashMap select(org.eclipse.collections.api.block.predicate.primitive.IntLongPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.IntLongMapselect in interface org.eclipse.collections.api.map.primitive.MutableIntLongMappublic IntLongHashMap reject(org.eclipse.collections.api.block.predicate.primitive.IntLongPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.IntLongMapreject in interface org.eclipse.collections.api.map.primitive.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 org.eclipse.collections.api.set.primitive.MutableIntSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.IntLongMappublic org.eclipse.collections.api.collection.primitive.MutableLongCollection values()
values in interface org.eclipse.collections.api.map.primitive.LongValuesMapCopyright © 2004–2017. All rights reserved.