public class IntIntHashMap extends AbstractMutableIntValuesMap implements org.eclipse.collections.api.map.primitive.MutableIntIntMap, Externalizable, MutableIntKeysMap
| Constructor and Description |
|---|
IntIntHashMap() |
IntIntHashMap(int initialCapacity) |
IntIntHashMap(org.eclipse.collections.api.map.primitive.IntIntMap map) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(int key,
int toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableIntIntMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableIntIntMap |
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.IntIntProcedure procedure) |
int |
get(int key) |
int |
getIfAbsent(int key,
int ifAbsent) |
int |
getIfAbsentPut(int key,
int value) |
int |
getIfAbsentPut(int key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function) |
<P> int |
getIfAbsentPutWith(int key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(int key,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function) |
int |
getOrThrow(int key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.iterator.MutableIntIterator |
intIterator() |
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.IntIntPair> |
keyValuesView() |
static IntIntHashMap |
newWithKeysValues(int key1,
int value1) |
static IntIntHashMap |
newWithKeysValues(int key1,
int value1,
int key2,
int value2) |
static IntIntHashMap |
newWithKeysValues(int key1,
int value1,
int key2,
int value2,
int key3,
int value3) |
static IntIntHashMap |
newWithKeysValues(int key1,
int value1,
int key2,
int value2,
int key3,
int value3,
int key4,
int value4) |
void |
put(int key,
int value) |
void |
putAll(org.eclipse.collections.api.map.primitive.IntIntMap map) |
void |
readExternal(ObjectInput in) |
IntIntHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.IntIntPredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
int |
removeKeyIfAbsent(int key,
int value) |
IntIntHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.IntIntPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableIntIntMap |
toImmutable() |
String |
toString() |
int |
updateValue(int key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function) |
org.eclipse.collections.api.collection.primitive.MutableIntCollection |
values() |
IntIntHashMap |
withKeysValues(int key1,
int value1,
int key2,
int value2) |
IntIntHashMap |
withKeysValues(int key1,
int value1,
int key2,
int value2,
int key3,
int value3) |
IntIntHashMap |
withKeysValues(int key1,
int value1,
int key2,
int value2,
int key3,
int value3,
int key4,
int value4) |
IntIntHashMap |
withKeyValue(int key1,
int value1) |
IntIntHashMap |
withoutAllKeys(org.eclipse.collections.api.IntIterable keys) |
IntIntHashMap |
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 IntIntHashMap()
public IntIntHashMap(int initialCapacity)
public IntIntHashMap(org.eclipse.collections.api.map.primitive.IntIntMap map)
public static IntIntHashMap newWithKeysValues(int key1, int value1)
public static IntIntHashMap newWithKeysValues(int key1, int value1, int key2, int value2)
public static IntIntHashMap newWithKeysValues(int key1, int value1, int key2, int value2, int key3, int value3)
public static IntIntHashMap newWithKeysValues(int key1, int value1, int key2, int value2, int key3, int value3, int key4, int value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.IntIntMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractIntIterablepublic org.eclipse.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface org.eclipse.collections.api.IntIterableintIterator in interface org.eclipse.collections.api.map.primitive.MutableIntValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.IntIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableIntValuesMapclear in interface MutableIntKeysMappublic void put(int key,
int value)
put in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic void putAll(org.eclipse.collections.api.map.primitive.IntIntMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic void removeKey(int key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableIntIntMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic int removeKeyIfAbsent(int key,
int value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic int getIfAbsentPut(int key,
int value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic int getIfAbsentPut(int key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic <P> int getIfAbsentPutWith(int key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic int getIfAbsentPutWithKey(int key,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic int addToValue(int key,
int toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic int updateValue(int key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic IntIntHashMap withKeyValue(int key1, int value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic IntIntHashMap withKeysValues(int key1, int value1, int key2, int value2)
public IntIntHashMap withKeysValues(int key1, int value1, int key2, int value2, int key3, int value3)
public IntIntHashMap withKeysValues(int key1, int value1, int key2, int value2, int key3, int value3, int key4, int value4)
public IntIntHashMap withoutKey(int key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic IntIntHashMap withoutAllKeys(org.eclipse.collections.api.IntIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic org.eclipse.collections.api.map.primitive.MutableIntIntMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic org.eclipse.collections.api.map.primitive.MutableIntIntMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic org.eclipse.collections.api.map.primitive.ImmutableIntIntMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.IntIntMappublic int get(int key)
get in interface org.eclipse.collections.api.map.primitive.IntIntMappublic int getIfAbsent(int key,
int ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.IntIntMappublic int getOrThrow(int key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.IntIntMappublic boolean containsKey(int key)
containsKey in interface org.eclipse.collections.api.map.primitive.IntIntMapcontainsKey in interface IntKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.IntIntMapforEachKey in interface IntKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.IntIntProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.IntIntMappublic org.eclipse.collections.api.LazyIntIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.IntIntMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.IntIntPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.IntIntMappublic IntIntHashMap select(org.eclipse.collections.api.block.predicate.primitive.IntIntPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.IntIntMapselect in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic IntIntHashMap reject(org.eclipse.collections.api.block.predicate.primitive.IntIntPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.IntIntMapreject in interface org.eclipse.collections.api.map.primitive.MutableIntIntMappublic 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.IntIntMappublic org.eclipse.collections.api.collection.primitive.MutableIntCollection values()
values in interface org.eclipse.collections.api.map.primitive.IntValuesMapCopyright © 2004–2017. All rights reserved.