public class ObjectLongHashMap<K> extends Object implements org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>, Externalizable
| Modifier and Type | Field and Description |
|---|---|
static long |
EMPTY_VALUE |
| Constructor and Description |
|---|
ObjectLongHashMap() |
ObjectLongHashMap(int initialCapacity) |
ObjectLongHashMap(org.eclipse.collections.api.map.primitive.ObjectLongMap<? extends K> map) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(K key,
long toBeAdded) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate 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.LazyLongIterable |
asLazy() |
org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K> |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K> |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> org.eclipse.collections.api.collection.MutableCollection<V> |
collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? 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(long value) |
boolean |
containsAll(long... source) |
boolean |
containsAll(org.eclipse.collections.api.LongIterable source) |
boolean |
containsKey(Object key) |
boolean |
containsValue(long value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate,
long ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure) |
boolean |
equals(Object obj) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectLongProcedure<? super K> procedure) |
void |
forEachValue(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure) |
long |
get(Object key) |
long |
getIfAbsent(Object key,
long ifAbsent) |
long |
getIfAbsentPut(K key,
long value) |
long |
getIfAbsentPut(K key,
org.eclipse.collections.api.block.function.primitive.LongFunction0 function) |
<P> long |
getIfAbsentPutWith(K key,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(K key,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super K> function) |
long |
getOrThrow(Object key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty() |
Set<K> |
keySet() |
org.eclipse.collections.api.LazyIterable<K> |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectLongPair<K>> |
keyValuesView() |
org.eclipse.collections.api.iterator.MutableLongIterator |
longIterator() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
long |
max() |
long |
maxIfEmpty(long defaultValue) |
double |
median() |
long |
min() |
long |
minIfEmpty(long defaultValue) |
static <K> ObjectLongHashMap<K> |
newMap() |
static <K> ObjectLongHashMap<K> |
newWithKeysValues(K key1,
long value1) |
static <K> ObjectLongHashMap<K> |
newWithKeysValues(K key1,
long value1,
K key2,
long value2) |
static <K> ObjectLongHashMap<K> |
newWithKeysValues(K key1,
long value1,
K key2,
long value2,
K key3,
long value3) |
static <K> ObjectLongHashMap<K> |
newWithKeysValues(K key1,
long value1,
K key2,
long value2,
K key3,
long value3,
K key4,
long value4) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
notEmpty() |
void |
put(K key,
long value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ObjectLongMap<? extends K> map) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
ObjectLongHashMap<K> |
reject(org.eclipse.collections.api.block.predicate.primitive.ObjectLongPredicate<? super K> predicate) |
void |
remove(Object key) |
void |
removeKey(K key) |
long |
removeKeyIfAbsent(K key,
long value) |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
ObjectLongHashMap<K> |
select(org.eclipse.collections.api.block.predicate.primitive.ObjectLongPredicate<? super K> predicate) |
int |
size() |
long |
sum() |
long[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableLongBag |
toBag() |
org.eclipse.collections.api.map.primitive.ImmutableObjectLongMap<K> |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableLongList |
toList() |
org.eclipse.collections.api.set.primitive.MutableLongSet |
toSet() |
long[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableLongList |
toSortedList() |
String |
toString() |
long |
updateValue(K key,
long initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function) |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
values() |
ObjectLongHashMap<K> |
withKeysValues(K key1,
long value1,
K key2,
long value2) |
ObjectLongHashMap<K> |
withKeysValues(K key1,
long value1,
K key2,
long value2,
K key3,
long value3) |
ObjectLongHashMap<K> |
withKeysValues(K key1,
long value1,
K key2,
long value2,
K key3,
long value3,
K key4,
long value4) |
ObjectLongHashMap<K> |
withKeyValue(K key1,
long value1) |
ObjectLongHashMap<K> |
withoutAllKeys(Iterable<? extends K> keys) |
ObjectLongHashMap<K> |
withoutKey(K key) |
void |
writeExternal(ObjectOutput out) |
public static final long EMPTY_VALUE
public ObjectLongHashMap()
public ObjectLongHashMap(int initialCapacity)
public ObjectLongHashMap(org.eclipse.collections.api.map.primitive.ObjectLongMap<? extends K> map)
public static <K> ObjectLongHashMap<K> newMap()
public static <K> ObjectLongHashMap<K> newWithKeysValues(K key1, long value1)
public static <K> ObjectLongHashMap<K> newWithKeysValues(K key1, long value1, K key2, long value2)
public static <K> ObjectLongHashMap<K> newWithKeysValues(K key1, long value1, K key2, long value2, K key3, long value3)
public static <K> ObjectLongHashMap<K> newWithKeysValues(K key1, long value1, K key2, long value2, K key3, long value3, K key4, long 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.MutableLongIterator longIterator()
longIterator in interface org.eclipse.collections.api.LongIterablelongIterator in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public long[] toArray()
toArray in interface org.eclipse.collections.api.LongIterablepublic boolean contains(long value)
contains in interface org.eclipse.collections.api.LongIterablepublic boolean containsAll(long... source)
containsAll in interface org.eclipse.collections.api.LongIterablepublic boolean containsAll(org.eclipse.collections.api.LongIterable source)
containsAll in interface org.eclipse.collections.api.LongIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public void put(K key, long value)
put in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public void putAll(org.eclipse.collections.api.map.primitive.ObjectLongMap<? extends K> map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public void removeKey(K key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public void remove(Object key)
remove in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public long removeKeyIfAbsent(K key, long value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public long getIfAbsentPut(K key, long value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public long getIfAbsentPut(K key, org.eclipse.collections.api.block.function.primitive.LongFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public <P> long getIfAbsentPutWith(K key, org.eclipse.collections.api.block.function.primitive.LongFunction<? super P> function, P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public long getIfAbsentPutWithKey(K key, org.eclipse.collections.api.block.function.primitive.LongFunction<? super K> function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public long updateValue(K key, long initialValueIfAbsent, org.eclipse.collections.api.block.function.primitive.LongToLongFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public long addToValue(K key, long toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public ObjectLongHashMap<K> withKeyValue(K key1, long value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public ObjectLongHashMap<K> withKeysValues(K key1, long value1, K key2, long value2)
public ObjectLongHashMap<K> withKeysValues(K key1, long value1, K key2, long value2, K key3, long value3)
public ObjectLongHashMap<K> withKeysValues(K key1, long value1, K key2, long value2, K key3, long value3, K key4, long value4)
public ObjectLongHashMap<K> withoutKey(K key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public ObjectLongHashMap<K> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K> asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K> asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public org.eclipse.collections.api.map.primitive.ImmutableObjectLongMap<K> toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ObjectLongMap<K>public long get(Object key)
get in interface org.eclipse.collections.api.map.primitive.ObjectLongMap<K>public long getOrThrow(Object key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ObjectLongMap<K>public long getIfAbsent(Object key, long ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ObjectLongMap<K>public boolean containsKey(Object key)
containsKey in interface org.eclipse.collections.api.map.primitive.ObjectLongMap<K>public boolean containsValue(long value)
containsValue in interface org.eclipse.collections.api.map.primitive.ObjectLongMap<K>public void forEach(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure)
forEach in interface org.eclipse.collections.api.LongIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure)
each in interface org.eclipse.collections.api.LongIterablepublic void forEachValue(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure)
forEachValue in interface org.eclipse.collections.api.map.primitive.ObjectLongMap<K>public void forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ObjectLongMap<K>public void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectLongProcedure<? super K> procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ObjectLongMap<K>public ObjectLongHashMap<K> select(org.eclipse.collections.api.block.predicate.primitive.ObjectLongPredicate<? super K> predicate)
public ObjectLongHashMap<K> reject(org.eclipse.collections.api.block.predicate.primitive.ObjectLongPredicate<? super K> predicate)
public org.eclipse.collections.api.collection.primitive.MutableLongCollection select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface org.eclipse.collections.api.LongIterableselect in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public org.eclipse.collections.api.collection.primitive.MutableLongCollection reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface org.eclipse.collections.api.LongIterablereject in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public long detectIfNone(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate,
long ifNone)
detectIfNone in interface org.eclipse.collections.api.LongIterablepublic <V> org.eclipse.collections.api.collection.MutableCollection<V> collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.LongIterablecollect in interface org.eclipse.collections.api.map.primitive.MutableObjectLongMap<K>public int count(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
count in interface org.eclipse.collections.api.LongIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.LongIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.LongIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.LongIterablepublic <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 long sum()
sum in interface org.eclipse.collections.api.LongIterablepublic long max()
max in interface org.eclipse.collections.api.LongIterablepublic long min()
min in interface org.eclipse.collections.api.LongIterablepublic long maxIfEmpty(long defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.LongIterablepublic long minIfEmpty(long defaultValue)
minIfEmpty in interface org.eclipse.collections.api.LongIterablepublic double average()
average in interface org.eclipse.collections.api.LongIterablepublic double median()
median in interface org.eclipse.collections.api.LongIterablepublic org.eclipse.collections.api.list.primitive.MutableLongList toList()
toList in interface org.eclipse.collections.api.LongIterablepublic org.eclipse.collections.api.set.primitive.MutableLongSet toSet()
toSet in interface org.eclipse.collections.api.LongIterablepublic org.eclipse.collections.api.bag.primitive.MutableLongBag toBag()
toBag in interface org.eclipse.collections.api.LongIterablepublic org.eclipse.collections.api.LazyLongIterable asLazy()
asLazy in interface org.eclipse.collections.api.LongIterablepublic long[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.LongIterablepublic org.eclipse.collections.api.list.primitive.MutableLongList toSortedList()
toSortedList in interface org.eclipse.collections.api.LongIterablepublic 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.ObjectLongMap<K>public org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectLongPair<K>> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ObjectLongMap<K>public void compact()
public Set<K> keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ObjectLongMap<K>public org.eclipse.collections.api.collection.primitive.MutableLongCollection values()
values in interface org.eclipse.collections.api.map.primitive.ObjectLongMap<K>Copyright © 2004–2017. All rights reserved.