public class LongLongHashMap extends AbstractMutableLongValuesMap implements com.gs.collections.api.map.primitive.MutableLongLongMap, java.io.Externalizable, MutableLongKeysMap
AbstractMutableLongValuesMap.AbstractLongValuesCollection, AbstractMutableLongValuesMap.SentinelValues| Constructor and Description |
|---|
LongLongHashMap() |
LongLongHashMap(int initialCapacity) |
LongLongHashMap(com.gs.collections.api.map.primitive.LongLongMap map) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(long key,
long toBeAdded) |
com.gs.collections.api.map.primitive.MutableLongLongMap |
asSynchronized() |
com.gs.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(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.LongLongProcedure procedure) |
long |
get(long key) |
protected long |
getEmptyValue() |
long |
getIfAbsent(long key,
long ifAbsent) |
long |
getIfAbsentPut(long key,
long value) |
long |
getIfAbsentPut(long key,
com.gs.collections.api.block.function.primitive.LongFunction0 function) |
<P> long |
getIfAbsentPutWith(long key,
com.gs.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(long key,
com.gs.collections.api.block.function.primitive.LongToLongFunction function) |
protected int |
getOccupiedWithData() |
long |
getOrThrow(long key) |
protected AbstractMutableLongValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected long |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableLongSet |
keySet() |
com.gs.collections.api.LazyLongIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.LongLongPair> |
keyValuesView() |
com.gs.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(com.gs.collections.api.map.primitive.LongLongMap map) |
void |
readExternal(java.io.ObjectInput in) |
LongLongHashMap |
reject(com.gs.collections.api.block.predicate.primitive.LongLongPredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
long |
removeKeyIfAbsent(long key,
long value) |
LongLongHashMap |
select(com.gs.collections.api.block.predicate.primitive.LongLongPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableLongLongMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
long |
updateValue(long key,
long initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.LongToLongFunction function) |
com.gs.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(com.gs.collections.api.LongIterable keys) |
LongLongHashMap |
withoutKey(long key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, 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(com.gs.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)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableLongValuesMapprotected AbstractMutableLongValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableLongValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableLongValuesMapprotected long getEmptyValue()
getEmptyValue in class AbstractMutableLongValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableLongValuesMapprotected long getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableLongValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.LongLongMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.LongLongMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.LongLongMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.LongLongMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.LongLongMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractLongIterablepublic com.gs.collections.api.iterator.MutableLongIterator longIterator()
longIterator in interface com.gs.collections.api.LongIterablelongIterator in interface com.gs.collections.api.map.primitive.MutableLongValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.LongIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableLongValuesMapclear in interface MutableLongKeysMappublic void put(long key,
long value)
put in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic void putAll(com.gs.collections.api.map.primitive.LongLongMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic void removeKey(long key)
removeKey in interface com.gs.collections.api.map.primitive.MutableLongLongMapremoveKey in interface MutableLongKeysMappublic void remove(long key)
remove in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic long removeKeyIfAbsent(long key,
long value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic long getIfAbsentPut(long key,
long value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic long getIfAbsentPut(long key,
com.gs.collections.api.block.function.primitive.LongFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic <P> long getIfAbsentPutWith(long key,
com.gs.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic long getIfAbsentPutWithKey(long key,
com.gs.collections.api.block.function.primitive.LongToLongFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic long addToValue(long key,
long toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic long updateValue(long key,
long initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.LongToLongFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic LongLongHashMap withKeyValue(long key1, long value1)
withKeyValue in interface com.gs.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 com.gs.collections.api.map.primitive.MutableLongLongMappublic LongLongHashMap withoutAllKeys(com.gs.collections.api.LongIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic com.gs.collections.api.map.primitive.MutableLongLongMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic com.gs.collections.api.map.primitive.MutableLongLongMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic com.gs.collections.api.map.primitive.ImmutableLongLongMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.LongLongMappublic long get(long key)
get in interface com.gs.collections.api.map.primitive.LongLongMappublic long getIfAbsent(long key,
long ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.LongLongMappublic long getOrThrow(long key)
getOrThrow in interface com.gs.collections.api.map.primitive.LongLongMappublic boolean containsKey(long key)
containsKey in interface com.gs.collections.api.map.primitive.LongLongMapcontainsKey in interface LongKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.LongLongMapforEachKey in interface LongKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.LongLongProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.LongLongMappublic com.gs.collections.api.LazyLongIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.LongLongMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.LongLongPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.LongLongMappublic LongLongHashMap select(com.gs.collections.api.block.predicate.primitive.LongLongPredicate predicate)
select in interface com.gs.collections.api.map.primitive.LongLongMapselect in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic LongLongHashMap reject(com.gs.collections.api.block.predicate.primitive.LongLongPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.LongLongMapreject in interface com.gs.collections.api.map.primitive.MutableLongLongMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void compact()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableLongValuesMappublic com.gs.collections.api.set.primitive.MutableLongSet keySet()
keySet in interface com.gs.collections.api.map.primitive.LongLongMappublic com.gs.collections.api.collection.primitive.MutableLongCollection values()
values in interface com.gs.collections.api.map.primitive.LongValuesMap