public class ByteLongHashMap extends AbstractMutableLongValuesMap implements com.gs.collections.api.map.primitive.MutableByteLongMap, java.io.Externalizable, MutableByteKeysMap
AbstractMutableLongValuesMap.AbstractLongValuesCollection, AbstractMutableLongValuesMap.SentinelValues| Constructor and Description |
|---|
ByteLongHashMap() |
ByteLongHashMap(com.gs.collections.api.map.primitive.ByteLongMap map) |
ByteLongHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(byte key,
long toBeAdded) |
com.gs.collections.api.map.primitive.MutableByteLongMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableByteLongMap |
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(byte 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.ByteProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ByteLongProcedure procedure) |
long |
get(byte key) |
protected long |
getEmptyValue() |
long |
getIfAbsent(byte key,
long ifAbsent) |
long |
getIfAbsentPut(byte key,
long value) |
long |
getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.LongFunction0 function) |
<P> long |
getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToLongFunction function) |
protected int |
getOccupiedWithData() |
long |
getOrThrow(byte 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.MutableByteSet |
keySet() |
com.gs.collections.api.LazyByteIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ByteLongPair> |
keyValuesView() |
com.gs.collections.api.iterator.MutableLongIterator |
longIterator() |
static ByteLongHashMap |
newWithKeysValues(byte key1,
long value1) |
static ByteLongHashMap |
newWithKeysValues(byte key1,
long value1,
byte key2,
long value2) |
static ByteLongHashMap |
newWithKeysValues(byte key1,
long value1,
byte key2,
long value2,
byte key3,
long value3) |
static ByteLongHashMap |
newWithKeysValues(byte key1,
long value1,
byte key2,
long value2,
byte key3,
long value3,
byte key4,
long value4) |
void |
put(byte key,
long value) |
void |
putAll(com.gs.collections.api.map.primitive.ByteLongMap map) |
void |
readExternal(java.io.ObjectInput in) |
ByteLongHashMap |
reject(com.gs.collections.api.block.predicate.primitive.ByteLongPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
long |
removeKeyIfAbsent(byte key,
long value) |
ByteLongHashMap |
select(com.gs.collections.api.block.predicate.primitive.ByteLongPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableByteLongMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
long |
updateValue(byte key,
long initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.LongToLongFunction function) |
com.gs.collections.api.collection.primitive.MutableLongCollection |
values() |
ByteLongHashMap |
withKeysValues(byte key1,
long value1,
byte key2,
long value2) |
ByteLongHashMap |
withKeysValues(byte key1,
long value1,
byte key2,
long value2,
byte key3,
long value3) |
ByteLongHashMap |
withKeysValues(byte key1,
long value1,
byte key2,
long value2,
byte key3,
long value3,
byte key4,
long value4) |
ByteLongHashMap |
withKeyValue(byte key1,
long value1) |
ByteLongHashMap |
withoutAllKeys(com.gs.collections.api.ByteIterable keys) |
ByteLongHashMap |
withoutKey(byte 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 ByteLongHashMap()
public ByteLongHashMap(int initialCapacity)
public ByteLongHashMap(com.gs.collections.api.map.primitive.ByteLongMap map)
public static ByteLongHashMap newWithKeysValues(byte key1, long value1)
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2)
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3)
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte 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.ByteLongMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.ByteLongMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.ByteLongMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.ByteLongMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.ByteLongMaptoString 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 MutableByteKeysMappublic void put(byte key,
long value)
put in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic void putAll(com.gs.collections.api.map.primitive.ByteLongMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic void removeKey(byte key)
removeKey in interface com.gs.collections.api.map.primitive.MutableByteLongMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic long removeKeyIfAbsent(byte key,
long value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic long getIfAbsentPut(byte key,
long value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic long getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.LongFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic <P> long getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic long getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToLongFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic long addToValue(byte key,
long toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic long updateValue(byte key,
long initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.LongToLongFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic ByteLongHashMap withKeyValue(byte key1, long value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2)
public ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3)
public ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4)
public ByteLongHashMap withoutKey(byte key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic ByteLongHashMap withoutAllKeys(com.gs.collections.api.ByteIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic com.gs.collections.api.map.primitive.MutableByteLongMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic com.gs.collections.api.map.primitive.MutableByteLongMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic com.gs.collections.api.map.primitive.ImmutableByteLongMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.ByteLongMappublic long get(byte key)
get in interface com.gs.collections.api.map.primitive.ByteLongMappublic long getIfAbsent(byte key,
long ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.ByteLongMappublic long getOrThrow(byte key)
getOrThrow in interface com.gs.collections.api.map.primitive.ByteLongMappublic boolean containsKey(byte key)
containsKey in interface com.gs.collections.api.map.primitive.ByteLongMapcontainsKey in interface ByteKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.ByteLongMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ByteLongProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.ByteLongMappublic com.gs.collections.api.LazyByteIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.ByteLongMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ByteLongPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.ByteLongMappublic ByteLongHashMap select(com.gs.collections.api.block.predicate.primitive.ByteLongPredicate predicate)
select in interface com.gs.collections.api.map.primitive.ByteLongMapselect in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic ByteLongHashMap reject(com.gs.collections.api.block.predicate.primitive.ByteLongPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.ByteLongMapreject in interface com.gs.collections.api.map.primitive.MutableByteLongMappublic 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.MutableByteSet keySet()
keySet in interface com.gs.collections.api.map.primitive.ByteLongMappublic com.gs.collections.api.collection.primitive.MutableLongCollection values()
values in interface com.gs.collections.api.map.primitive.LongValuesMap