public class ObjectIntHashMap<K> extends Object implements org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>, Externalizable
| Modifier and Type | Field and Description |
|---|---|
static int |
EMPTY_VALUE |
| Constructor and Description |
|---|
ObjectIntHashMap() |
ObjectIntHashMap(int initialCapacity) |
ObjectIntHashMap(org.eclipse.collections.api.map.primitive.ObjectIntMap<? extends K> map) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(K key,
int toBeAdded) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyIntIterable |
asLazy() |
org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K> |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K> |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> org.eclipse.collections.api.collection.MutableCollection<V> |
collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
contains(int value) |
boolean |
containsAll(int... source) |
boolean |
containsAll(org.eclipse.collections.api.IntIterable source) |
boolean |
containsKey(Object key) |
boolean |
containsValue(int value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate,
int ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
boolean |
equals(Object obj) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super K> procedure) |
void |
forEachValue(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
int |
get(Object key) |
int |
getIfAbsent(Object key,
int ifAbsent) |
int |
getIfAbsentPut(K key,
int value) |
int |
getIfAbsentPut(K key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function) |
<P> int |
getIfAbsentPutWith(K key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(K key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super K> function) |
int |
getOrThrow(Object 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() |
boolean |
isEmpty() |
Set<K> |
keySet() |
org.eclipse.collections.api.LazyIterable<K> |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectIntPair<K>> |
keyValuesView() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
int |
max() |
int |
maxIfEmpty(int defaultValue) |
double |
median() |
int |
min() |
int |
minIfEmpty(int defaultValue) |
static <K> ObjectIntHashMap<K> |
newMap() |
static <K> ObjectIntHashMap<K> |
newWithKeysValues(K key1,
int value1) |
static <K> ObjectIntHashMap<K> |
newWithKeysValues(K key1,
int value1,
K key2,
int value2) |
static <K> ObjectIntHashMap<K> |
newWithKeysValues(K key1,
int value1,
K key2,
int value2,
K key3,
int value3) |
static <K> ObjectIntHashMap<K> |
newWithKeysValues(K key1,
int value1,
K key2,
int value2,
K key3,
int value3,
K key4,
int value4) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
notEmpty() |
void |
put(K key,
int value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ObjectIntMap<? extends K> map) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.collection.primitive.MutableIntCollection |
reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
ObjectIntHashMap<K> |
reject(org.eclipse.collections.api.block.predicate.primitive.ObjectIntPredicate<? super K> predicate) |
void |
remove(Object key) |
void |
removeKey(K key) |
int |
removeKeyIfAbsent(K key,
int value) |
org.eclipse.collections.api.collection.primitive.MutableIntCollection |
select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
ObjectIntHashMap<K> |
select(org.eclipse.collections.api.block.predicate.primitive.ObjectIntPredicate<? super K> predicate) |
int |
size() |
long |
sum() |
int[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableIntBag |
toBag() |
org.eclipse.collections.api.map.primitive.ImmutableObjectIntMap<K> |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableIntList |
toList() |
org.eclipse.collections.api.set.primitive.MutableIntSet |
toSet() |
int[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableIntList |
toSortedList() |
String |
toString() |
int |
updateValue(K key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function) |
org.eclipse.collections.api.collection.primitive.MutableIntCollection |
values() |
ObjectIntHashMap<K> |
withKeysValues(K key1,
int value1,
K key2,
int value2) |
ObjectIntHashMap<K> |
withKeysValues(K key1,
int value1,
K key2,
int value2,
K key3,
int value3) |
ObjectIntHashMap<K> |
withKeysValues(K key1,
int value1,
K key2,
int value2,
K key3,
int value3,
K key4,
int value4) |
ObjectIntHashMap<K> |
withKeyValue(K key1,
int value1) |
ObjectIntHashMap<K> |
withoutAllKeys(Iterable<? extends K> keys) |
ObjectIntHashMap<K> |
withoutKey(K key) |
void |
writeExternal(ObjectOutput out) |
public static final int EMPTY_VALUE
public ObjectIntHashMap()
public ObjectIntHashMap(int initialCapacity)
public ObjectIntHashMap(org.eclipse.collections.api.map.primitive.ObjectIntMap<? extends K> map)
public static <K> ObjectIntHashMap<K> newMap()
public static <K> ObjectIntHashMap<K> newWithKeysValues(K key1, int value1)
public static <K> ObjectIntHashMap<K> newWithKeysValues(K key1, int value1, K key2, int value2)
public static <K> ObjectIntHashMap<K> newWithKeysValues(K key1, int value1, K key2, int value2, K key3, int value3)
public static <K> ObjectIntHashMap<K> newWithKeysValues(K key1, int value1, K key2, int value2, K key3, int value3, K key4, int value4)
public String toString()
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString()
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String separator)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic org.eclipse.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface org.eclipse.collections.api.IntIterableintIterator in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public int[] toArray()
toArray in interface org.eclipse.collections.api.IntIterablepublic boolean contains(int value)
contains in interface org.eclipse.collections.api.IntIterablepublic boolean containsAll(int... source)
containsAll in interface org.eclipse.collections.api.IntIterablepublic boolean containsAll(org.eclipse.collections.api.IntIterable source)
containsAll in interface org.eclipse.collections.api.IntIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public void put(K key, int value)
put in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public void putAll(org.eclipse.collections.api.map.primitive.ObjectIntMap<? extends K> map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public void removeKey(K key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public void remove(Object key)
remove in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public int removeKeyIfAbsent(K key, int value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public int getIfAbsentPut(K key, int value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public int getIfAbsentPut(K key, org.eclipse.collections.api.block.function.primitive.IntFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public <P> int getIfAbsentPutWith(K key, org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function, P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public int getIfAbsentPutWithKey(K key, org.eclipse.collections.api.block.function.primitive.IntFunction<? super K> function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public int updateValue(K key, int initialValueIfAbsent, org.eclipse.collections.api.block.function.primitive.IntToIntFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public int addToValue(K key, int toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public ObjectIntHashMap<K> withKeyValue(K key1, int value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public ObjectIntHashMap<K> withKeysValues(K key1, int value1, K key2, int value2)
public ObjectIntHashMap<K> withKeysValues(K key1, int value1, K key2, int value2, K key3, int value3)
public ObjectIntHashMap<K> withKeysValues(K key1, int value1, K key2, int value2, K key3, int value3, K key4, int value4)
public ObjectIntHashMap<K> withoutKey(K key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public ObjectIntHashMap<K> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K> asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K> asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public org.eclipse.collections.api.map.primitive.ImmutableObjectIntMap<K> toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>public int get(Object key)
get in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>public int getOrThrow(Object key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>public int getIfAbsent(Object key, int ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>public boolean containsKey(Object key)
containsKey in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>public boolean containsValue(int value)
containsValue in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>public void forEach(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
forEach in interface org.eclipse.collections.api.IntIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
each in interface org.eclipse.collections.api.IntIterablepublic void forEachValue(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
forEachValue in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>public void forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>public void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super K> procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>public ObjectIntHashMap<K> select(org.eclipse.collections.api.block.predicate.primitive.ObjectIntPredicate<? super K> predicate)
public ObjectIntHashMap<K> reject(org.eclipse.collections.api.block.predicate.primitive.ObjectIntPredicate<? super K> predicate)
public org.eclipse.collections.api.collection.primitive.MutableIntCollection select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
select in interface org.eclipse.collections.api.IntIterableselect in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public org.eclipse.collections.api.collection.primitive.MutableIntCollection reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
reject in interface org.eclipse.collections.api.IntIterablereject in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public int detectIfNone(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate,
int ifNone)
detectIfNone in interface org.eclipse.collections.api.IntIterablepublic <V> org.eclipse.collections.api.collection.MutableCollection<V> collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.IntIterablecollect in interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap<K>public int count(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
count in interface org.eclipse.collections.api.IntIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.IntIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.IntIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.IntIterablepublic <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 long sum()
sum in interface org.eclipse.collections.api.IntIterablepublic int max()
max in interface org.eclipse.collections.api.IntIterablepublic int min()
min in interface org.eclipse.collections.api.IntIterablepublic int maxIfEmpty(int defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.IntIterablepublic int minIfEmpty(int defaultValue)
minIfEmpty in interface org.eclipse.collections.api.IntIterablepublic double average()
average in interface org.eclipse.collections.api.IntIterablepublic double median()
median in interface org.eclipse.collections.api.IntIterablepublic org.eclipse.collections.api.list.primitive.MutableIntList toList()
toList in interface org.eclipse.collections.api.IntIterablepublic org.eclipse.collections.api.set.primitive.MutableIntSet toSet()
toSet in interface org.eclipse.collections.api.IntIterablepublic org.eclipse.collections.api.bag.primitive.MutableIntBag toBag()
toBag in interface org.eclipse.collections.api.IntIterablepublic org.eclipse.collections.api.LazyIntIterable asLazy()
asLazy in interface org.eclipse.collections.api.IntIterablepublic int[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.IntIterablepublic org.eclipse.collections.api.list.primitive.MutableIntList toSortedList()
toSortedList in interface org.eclipse.collections.api.IntIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic org.eclipse.collections.api.LazyIterable<K> keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>public org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectIntPair<K>> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>public void compact()
public Set<K> keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>public org.eclipse.collections.api.collection.primitive.MutableIntCollection values()
values in interface org.eclipse.collections.api.map.primitive.ObjectIntMap<K>Copyright © 2004–2018. All rights reserved.