public class IntLongHashMap extends AbstractMutableLongValuesMap implements com.gs.collections.api.map.primitive.MutableIntLongMap, java.io.Externalizable, MutableIntKeysMap
AbstractMutableLongValuesMap.AbstractLongValuesCollection, AbstractMutableLongValuesMap.SentinelValues| Constructor and Description |
|---|
IntLongHashMap() |
IntLongHashMap(int initialCapacity) |
IntLongHashMap(com.gs.collections.api.map.primitive.IntLongMap map) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(int key,
long toBeAdded) |
com.gs.collections.api.map.primitive.MutableIntLongMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableIntLongMap |
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(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.IntProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.IntLongProcedure procedure) |
long |
get(int key) |
protected long |
getEmptyValue() |
long |
getIfAbsent(int key,
long ifAbsent) |
long |
getIfAbsentPut(int key,
long value) |
long |
getIfAbsentPut(int key,
com.gs.collections.api.block.function.primitive.LongFunction0 function) |
<P> long |
getIfAbsentPutWith(int key,
com.gs.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(int key,
com.gs.collections.api.block.function.primitive.IntToLongFunction function) |
protected int |
getOccupiedWithData() |
long |
getOrThrow(int 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.MutableIntSet |
keySet() |
com.gs.collections.api.LazyIntIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.IntLongPair> |
keyValuesView() |
com.gs.collections.api.iterator.MutableLongIterator |
longIterator() |
static IntLongHashMap |
newWithKeysValues(int key1,
long value1) |
static IntLongHashMap |
newWithKeysValues(int key1,
long value1,
int key2,
long value2) |
static IntLongHashMap |
newWithKeysValues(int key1,
long value1,
int key2,
long value2,
int key3,
long value3) |
static IntLongHashMap |
newWithKeysValues(int key1,
long value1,
int key2,
long value2,
int key3,
long value3,
int key4,
long value4) |
void |
put(int key,
long value) |
void |
putAll(com.gs.collections.api.map.primitive.IntLongMap map) |
void |
readExternal(java.io.ObjectInput in) |
IntLongHashMap |
reject(com.gs.collections.api.block.predicate.primitive.IntLongPredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
long |
removeKeyIfAbsent(int key,
long value) |
IntLongHashMap |
select(com.gs.collections.api.block.predicate.primitive.IntLongPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableIntLongMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
long |
updateValue(int key,
long initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.LongToLongFunction function) |
com.gs.collections.api.collection.primitive.MutableLongCollection |
values() |
IntLongHashMap |
withKeysValues(int key1,
long value1,
int key2,
long value2) |
IntLongHashMap |
withKeysValues(int key1,
long value1,
int key2,
long value2,
int key3,
long value3) |
IntLongHashMap |
withKeysValues(int key1,
long value1,
int key2,
long value2,
int key3,
long value3,
int key4,
long value4) |
IntLongHashMap |
withKeyValue(int key1,
long value1) |
IntLongHashMap |
withoutAllKeys(com.gs.collections.api.IntIterable keys) |
IntLongHashMap |
withoutKey(int 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 IntLongHashMap()
public IntLongHashMap(int initialCapacity)
public IntLongHashMap(com.gs.collections.api.map.primitive.IntLongMap map)
public static IntLongHashMap newWithKeysValues(int key1, long value1)
public static IntLongHashMap newWithKeysValues(int key1, long value1, int key2, long value2)
public static IntLongHashMap newWithKeysValues(int key1, long value1, int key2, long value2, int key3, long value3)
public static IntLongHashMap newWithKeysValues(int key1, long value1, int key2, long value2, int key3, long value3, int 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.IntLongMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.IntLongMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.IntLongMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.IntLongMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.IntLongMaptoString 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 MutableIntKeysMappublic void put(int key,
long value)
put in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic void putAll(com.gs.collections.api.map.primitive.IntLongMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic void removeKey(int key)
removeKey in interface com.gs.collections.api.map.primitive.MutableIntLongMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic long removeKeyIfAbsent(int key,
long value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic long getIfAbsentPut(int key,
long value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic long getIfAbsentPut(int key,
com.gs.collections.api.block.function.primitive.LongFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic <P> long getIfAbsentPutWith(int key,
com.gs.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic long getIfAbsentPutWithKey(int key,
com.gs.collections.api.block.function.primitive.IntToLongFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic long addToValue(int key,
long toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic long updateValue(int key,
long initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.LongToLongFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic IntLongHashMap withKeyValue(int key1, long value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic IntLongHashMap withKeysValues(int key1, long value1, int key2, long value2)
public IntLongHashMap withKeysValues(int key1, long value1, int key2, long value2, int key3, long value3)
public IntLongHashMap withKeysValues(int key1, long value1, int key2, long value2, int key3, long value3, int key4, long value4)
public IntLongHashMap withoutKey(int key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic IntLongHashMap withoutAllKeys(com.gs.collections.api.IntIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic com.gs.collections.api.map.primitive.MutableIntLongMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic com.gs.collections.api.map.primitive.MutableIntLongMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic com.gs.collections.api.map.primitive.ImmutableIntLongMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.IntLongMappublic long get(int key)
get in interface com.gs.collections.api.map.primitive.IntLongMappublic long getIfAbsent(int key,
long ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.IntLongMappublic long getOrThrow(int key)
getOrThrow in interface com.gs.collections.api.map.primitive.IntLongMappublic boolean containsKey(int key)
containsKey in interface com.gs.collections.api.map.primitive.IntLongMapcontainsKey in interface IntKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.IntProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.IntLongMapforEachKey in interface IntKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.IntLongProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.IntLongMappublic com.gs.collections.api.LazyIntIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.IntLongMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.IntLongPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.IntLongMappublic IntLongHashMap select(com.gs.collections.api.block.predicate.primitive.IntLongPredicate predicate)
select in interface com.gs.collections.api.map.primitive.IntLongMapselect in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic IntLongHashMap reject(com.gs.collections.api.block.predicate.primitive.IntLongPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.IntLongMapreject in interface com.gs.collections.api.map.primitive.MutableIntLongMappublic 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.MutableIntSet keySet()
keySet in interface com.gs.collections.api.map.primitive.IntLongMappublic com.gs.collections.api.collection.primitive.MutableLongCollection values()
values in interface com.gs.collections.api.map.primitive.LongValuesMap