public class DoubleByteHashMap extends AbstractMutableByteValuesMap implements com.gs.collections.api.map.primitive.MutableDoubleByteMap, java.io.Externalizable, MutableDoubleKeysMap
AbstractMutableByteValuesMap.AbstractByteValuesCollection, AbstractMutableByteValuesMap.SentinelValues| Constructor and Description |
|---|
DoubleByteHashMap() |
DoubleByteHashMap(com.gs.collections.api.map.primitive.DoubleByteMap map) |
DoubleByteHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
byte |
addToValue(double key,
byte toBeAdded) |
com.gs.collections.api.map.primitive.MutableDoubleByteMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableDoubleByteMap |
asUnmodifiable() |
com.gs.collections.api.iterator.MutableByteIterator |
byteIterator() |
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(double 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.DoubleProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.DoubleByteProcedure procedure) |
byte |
get(double key) |
protected byte |
getEmptyValue() |
byte |
getIfAbsent(double key,
byte ifAbsent) |
byte |
getIfAbsentPut(double key,
byte value) |
byte |
getIfAbsentPut(double key,
com.gs.collections.api.block.function.primitive.ByteFunction0 function) |
<P> byte |
getIfAbsentPutWith(double key,
com.gs.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter) |
byte |
getIfAbsentPutWithKey(double key,
com.gs.collections.api.block.function.primitive.DoubleToByteFunction function) |
protected int |
getOccupiedWithData() |
byte |
getOrThrow(double key) |
protected AbstractMutableByteValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected byte |
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.ObjectByteToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableDoubleSet |
keySet() |
com.gs.collections.api.LazyDoubleIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.DoubleBytePair> |
keyValuesView() |
static DoubleByteHashMap |
newWithKeysValues(double key1,
byte value1) |
static DoubleByteHashMap |
newWithKeysValues(double key1,
byte value1,
double key2,
byte value2) |
static DoubleByteHashMap |
newWithKeysValues(double key1,
byte value1,
double key2,
byte value2,
double key3,
byte value3) |
static DoubleByteHashMap |
newWithKeysValues(double key1,
byte value1,
double key2,
byte value2,
double key3,
byte value3,
double key4,
byte value4) |
void |
put(double key,
byte value) |
void |
putAll(com.gs.collections.api.map.primitive.DoubleByteMap map) |
void |
readExternal(java.io.ObjectInput in) |
DoubleByteHashMap |
reject(com.gs.collections.api.block.predicate.primitive.DoubleBytePredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
byte |
removeKeyIfAbsent(double key,
byte value) |
DoubleByteHashMap |
select(com.gs.collections.api.block.predicate.primitive.DoubleBytePredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableDoubleByteMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
byte |
updateValue(double key,
byte initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ByteToByteFunction function) |
com.gs.collections.api.collection.primitive.MutableByteCollection |
values() |
DoubleByteHashMap |
withKeysValues(double key1,
byte value1,
double key2,
byte value2) |
DoubleByteHashMap |
withKeysValues(double key1,
byte value1,
double key2,
byte value2,
double key3,
byte value3) |
DoubleByteHashMap |
withKeysValues(double key1,
byte value1,
double key2,
byte value2,
double key3,
byte value3,
double key4,
byte value4) |
DoubleByteHashMap |
withKeyValue(double key1,
byte value1) |
DoubleByteHashMap |
withoutAllKeys(com.gs.collections.api.DoubleIterable keys) |
DoubleByteHashMap |
withoutKey(double 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 DoubleByteHashMap()
public DoubleByteHashMap(int initialCapacity)
public DoubleByteHashMap(com.gs.collections.api.map.primitive.DoubleByteMap map)
public static DoubleByteHashMap newWithKeysValues(double key1, byte value1)
public static DoubleByteHashMap newWithKeysValues(double key1, byte value1, double key2, byte value2)
public static DoubleByteHashMap newWithKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3)
public static DoubleByteHashMap newWithKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3, double key4, byte value4)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableByteValuesMapprotected AbstractMutableByteValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableByteValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableByteValuesMapprotected byte getEmptyValue()
getEmptyValue in class AbstractMutableByteValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableByteValuesMapprotected byte getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableByteValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.DoubleByteMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.DoubleByteMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.DoubleByteMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.DoubleByteMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.DoubleByteMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractByteIterablepublic com.gs.collections.api.iterator.MutableByteIterator byteIterator()
byteIterator in interface com.gs.collections.api.ByteIterablebyteIterator in interface com.gs.collections.api.map.primitive.MutableByteValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.ByteIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableByteValuesMapclear in interface MutableDoubleKeysMappublic void put(double key,
byte value)
put in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic void putAll(com.gs.collections.api.map.primitive.DoubleByteMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic void removeKey(double key)
removeKey in interface com.gs.collections.api.map.primitive.MutableDoubleByteMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic byte removeKeyIfAbsent(double key,
byte value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic byte getIfAbsentPut(double key,
byte value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic byte getIfAbsentPut(double key,
com.gs.collections.api.block.function.primitive.ByteFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic <P> byte getIfAbsentPutWith(double key,
com.gs.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic byte getIfAbsentPutWithKey(double key,
com.gs.collections.api.block.function.primitive.DoubleToByteFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic byte addToValue(double key,
byte toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic byte updateValue(double key,
byte initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ByteToByteFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic DoubleByteHashMap withKeyValue(double key1, byte value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic DoubleByteHashMap withKeysValues(double key1, byte value1, double key2, byte value2)
public DoubleByteHashMap withKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3)
public DoubleByteHashMap withKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3, double key4, byte value4)
public DoubleByteHashMap withoutKey(double key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic DoubleByteHashMap withoutAllKeys(com.gs.collections.api.DoubleIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic com.gs.collections.api.map.primitive.MutableDoubleByteMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic com.gs.collections.api.map.primitive.MutableDoubleByteMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic com.gs.collections.api.map.primitive.ImmutableDoubleByteMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.DoubleByteMappublic byte get(double key)
get in interface com.gs.collections.api.map.primitive.DoubleByteMappublic byte getIfAbsent(double key,
byte ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.DoubleByteMappublic byte getOrThrow(double key)
getOrThrow in interface com.gs.collections.api.map.primitive.DoubleByteMappublic boolean containsKey(double key)
containsKey in interface com.gs.collections.api.map.primitive.DoubleByteMapcontainsKey in interface DoubleKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.DoubleByteMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.DoubleByteProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.DoubleByteMappublic com.gs.collections.api.LazyDoubleIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.DoubleByteMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.DoubleBytePair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.DoubleByteMappublic DoubleByteHashMap select(com.gs.collections.api.block.predicate.primitive.DoubleBytePredicate predicate)
select in interface com.gs.collections.api.map.primitive.DoubleByteMapselect in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic DoubleByteHashMap reject(com.gs.collections.api.block.predicate.primitive.DoubleBytePredicate predicate)
reject in interface com.gs.collections.api.map.primitive.DoubleByteMapreject in interface com.gs.collections.api.map.primitive.MutableDoubleByteMappublic 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 AbstractMutableByteValuesMappublic com.gs.collections.api.set.primitive.MutableDoubleSet keySet()
keySet in interface com.gs.collections.api.map.primitive.DoubleByteMappublic com.gs.collections.api.collection.primitive.MutableByteCollection values()
values in interface com.gs.collections.api.map.primitive.ByteValuesMap