public class LongLongHashMap extends AbstractMutableLongValuesMap implements org.eclipse.collections.api.map.primitive.MutableLongLongMap, Externalizable, MutableLongKeysMap
| Constructor and Description |
|---|
LongLongHashMap() |
LongLongHashMap(int initialCapacity) |
LongLongHashMap(org.eclipse.collections.api.map.primitive.LongLongMap map) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(long key,
long toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableLongLongMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableLongLongMap |
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(long key) |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.LongLongProcedure procedure) |
long |
get(long key) |
long |
getIfAbsent(long key,
long ifAbsent) |
long |
getIfAbsentPut(long key,
long value) |
long |
getIfAbsentPut(long key,
org.eclipse.collections.api.block.function.primitive.LongFunction0 function) |
<P> long |
getIfAbsentPutWith(long key,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(long key,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function) |
long |
getOrThrow(long 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.MutableLongSet |
keySet() |
org.eclipse.collections.api.LazyLongIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.LongLongPair> |
keyValuesView() |
org.eclipse.collections.api.iterator.MutableLongIterator |
longIterator() |
static LongLongHashMap |
newWithKeysValues(long key1,
long value1) |
static LongLongHashMap |
newWithKeysValues(long key1,
long value1,
long key2,
long value2) |
static LongLongHashMap |
newWithKeysValues(long key1,
long value1,
long key2,
long value2,
long key3,
long value3) |
static LongLongHashMap |
newWithKeysValues(long key1,
long value1,
long key2,
long value2,
long key3,
long value3,
long key4,
long value4) |
void |
put(long key,
long value) |
void |
putAll(org.eclipse.collections.api.map.primitive.LongLongMap map) |
void |
readExternal(ObjectInput in) |
LongLongHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.LongLongPredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
long |
removeKeyIfAbsent(long key,
long value) |
LongLongHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.LongLongPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableLongLongMap |
toImmutable() |
String |
toString() |
long |
updateValue(long key,
long initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function) |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
values() |
LongLongHashMap |
withKeysValues(long key1,
long value1,
long key2,
long value2) |
LongLongHashMap |
withKeysValues(long key1,
long value1,
long key2,
long value2,
long key3,
long value3) |
LongLongHashMap |
withKeysValues(long key1,
long value1,
long key2,
long value2,
long key3,
long value3,
long key4,
long value4) |
LongLongHashMap |
withKeyValue(long key1,
long value1) |
LongLongHashMap |
withoutAllKeys(org.eclipse.collections.api.LongIterable keys) |
LongLongHashMap |
withoutKey(long 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 LongLongHashMap()
public LongLongHashMap(int initialCapacity)
public LongLongHashMap(org.eclipse.collections.api.map.primitive.LongLongMap map)
public static LongLongHashMap newWithKeysValues(long key1, long value1)
public static LongLongHashMap newWithKeysValues(long key1, long value1, long key2, long value2)
public static LongLongHashMap newWithKeysValues(long key1, long value1, long key2, long value2, long key3, long value3)
public static LongLongHashMap newWithKeysValues(long key1, long value1, long key2, long value2, long key3, long value3, long key4, long value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.LongLongMaptoString 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 MutableLongKeysMappublic void put(long key,
long value)
put in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic void putAll(org.eclipse.collections.api.map.primitive.LongLongMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic void removeKey(long key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableLongLongMapremoveKey in interface MutableLongKeysMappublic void remove(long key)
remove in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic long removeKeyIfAbsent(long key,
long value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic long getIfAbsentPut(long key,
long value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic long getIfAbsentPut(long key,
org.eclipse.collections.api.block.function.primitive.LongFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic <P> long getIfAbsentPutWith(long key,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic long getIfAbsentPutWithKey(long key,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic long addToValue(long key,
long toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic long updateValue(long key,
long initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic LongLongHashMap withKeyValue(long key1, long value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic LongLongHashMap withKeysValues(long key1, long value1, long key2, long value2)
public LongLongHashMap withKeysValues(long key1, long value1, long key2, long value2, long key3, long value3)
public LongLongHashMap withKeysValues(long key1, long value1, long key2, long value2, long key3, long value3, long key4, long value4)
public LongLongHashMap withoutKey(long key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic LongLongHashMap withoutAllKeys(org.eclipse.collections.api.LongIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic org.eclipse.collections.api.map.primitive.MutableLongLongMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic org.eclipse.collections.api.map.primitive.MutableLongLongMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic org.eclipse.collections.api.map.primitive.ImmutableLongLongMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.LongLongMappublic long get(long key)
get in interface org.eclipse.collections.api.map.primitive.LongLongMappublic long getIfAbsent(long key,
long ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.LongLongMappublic long getOrThrow(long key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.LongLongMappublic boolean containsKey(long key)
containsKey in interface org.eclipse.collections.api.map.primitive.LongLongMapcontainsKey in interface LongKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.LongLongMapforEachKey in interface LongKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.LongLongProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.LongLongMappublic org.eclipse.collections.api.LazyLongIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.LongLongMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.LongLongPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.LongLongMappublic LongLongHashMap select(org.eclipse.collections.api.block.predicate.primitive.LongLongPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.LongLongMapselect in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic LongLongHashMap reject(org.eclipse.collections.api.block.predicate.primitive.LongLongPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.LongLongMapreject in interface org.eclipse.collections.api.map.primitive.MutableLongLongMappublic 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.MutableLongSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.LongLongMappublic org.eclipse.collections.api.collection.primitive.MutableLongCollection values()
values in interface org.eclipse.collections.api.map.primitive.LongValuesMapCopyright © 2004–2017. All rights reserved.