public class ByteDoubleHashMap extends AbstractMutableDoubleValuesMap implements com.gs.collections.api.map.primitive.MutableByteDoubleMap, java.io.Externalizable, MutableByteKeysMap
AbstractMutableDoubleValuesMap.AbstractDoubleValuesCollection, AbstractMutableDoubleValuesMap.SentinelValues| Constructor and Description |
|---|
ByteDoubleHashMap() |
ByteDoubleHashMap(com.gs.collections.api.map.primitive.ByteDoubleMap map) |
ByteDoubleHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(byte key,
double toBeAdded) |
com.gs.collections.api.map.primitive.MutableByteDoubleMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableByteDoubleMap |
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) |
com.gs.collections.api.iterator.MutableDoubleIterator |
doubleIterator() |
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.ByteDoubleProcedure procedure) |
double |
get(byte key) |
protected double |
getEmptyValue() |
double |
getIfAbsent(byte key,
double ifAbsent) |
double |
getIfAbsentPut(byte key,
double value) |
double |
getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToDoubleFunction function) |
protected int |
getOccupiedWithData() |
double |
getOrThrow(byte key) |
protected AbstractMutableDoubleValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected double |
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.ObjectDoubleToObjectFunction<? 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.ByteDoublePair> |
keyValuesView() |
static ByteDoubleHashMap |
newWithKeysValues(byte key1,
double value1) |
static ByteDoubleHashMap |
newWithKeysValues(byte key1,
double value1,
byte key2,
double value2) |
static ByteDoubleHashMap |
newWithKeysValues(byte key1,
double value1,
byte key2,
double value2,
byte key3,
double value3) |
static ByteDoubleHashMap |
newWithKeysValues(byte key1,
double value1,
byte key2,
double value2,
byte key3,
double value3,
byte key4,
double value4) |
void |
put(byte key,
double value) |
void |
putAll(com.gs.collections.api.map.primitive.ByteDoubleMap map) |
void |
readExternal(java.io.ObjectInput in) |
ByteDoubleHashMap |
reject(com.gs.collections.api.block.predicate.primitive.ByteDoublePredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
double |
removeKeyIfAbsent(byte key,
double value) |
ByteDoubleHashMap |
select(com.gs.collections.api.block.predicate.primitive.ByteDoublePredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableByteDoubleMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
double |
updateValue(byte key,
double initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.DoubleToDoubleFunction function) |
com.gs.collections.api.collection.primitive.MutableDoubleCollection |
values() |
ByteDoubleHashMap |
withKeysValues(byte key1,
double value1,
byte key2,
double value2) |
ByteDoubleHashMap |
withKeysValues(byte key1,
double value1,
byte key2,
double value2,
byte key3,
double value3) |
ByteDoubleHashMap |
withKeysValues(byte key1,
double value1,
byte key2,
double value2,
byte key3,
double value3,
byte key4,
double value4) |
ByteDoubleHashMap |
withKeyValue(byte key1,
double value1) |
ByteDoubleHashMap |
withoutAllKeys(com.gs.collections.api.ByteIterable keys) |
ByteDoubleHashMap |
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 ByteDoubleHashMap()
public ByteDoubleHashMap(int initialCapacity)
public ByteDoubleHashMap(com.gs.collections.api.map.primitive.ByteDoubleMap map)
public static ByteDoubleHashMap newWithKeysValues(byte key1, double value1)
public static ByteDoubleHashMap newWithKeysValues(byte key1, double value1, byte key2, double value2)
public static ByteDoubleHashMap newWithKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3)
public static ByteDoubleHashMap newWithKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3, byte key4, double value4)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableDoubleValuesMapprotected AbstractMutableDoubleValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableDoubleValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableDoubleValuesMapprotected double getEmptyValue()
getEmptyValue in class AbstractMutableDoubleValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableDoubleValuesMapprotected double getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableDoubleValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.ByteDoubleMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.ByteDoubleMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.ByteDoubleMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.ByteDoubleMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.ByteDoubleMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractDoubleIterablepublic com.gs.collections.api.iterator.MutableDoubleIterator doubleIterator()
doubleIterator in interface com.gs.collections.api.DoubleIterabledoubleIterator in interface com.gs.collections.api.map.primitive.MutableDoubleValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.DoubleIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableDoubleValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
double value)
put in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic void putAll(com.gs.collections.api.map.primitive.ByteDoubleMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic void removeKey(byte key)
removeKey in interface com.gs.collections.api.map.primitive.MutableByteDoubleMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic double removeKeyIfAbsent(byte key,
double value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic double getIfAbsentPut(byte key,
double value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic double getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.DoubleFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic <P> double getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic double getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToDoubleFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic double addToValue(byte key,
double toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic double updateValue(byte key,
double initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.DoubleToDoubleFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic ByteDoubleHashMap withKeyValue(byte key1, double value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic ByteDoubleHashMap withKeysValues(byte key1, double value1, byte key2, double value2)
public ByteDoubleHashMap withKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3)
public ByteDoubleHashMap withKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3, byte key4, double value4)
public ByteDoubleHashMap withoutKey(byte key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic ByteDoubleHashMap withoutAllKeys(com.gs.collections.api.ByteIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic com.gs.collections.api.map.primitive.MutableByteDoubleMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic com.gs.collections.api.map.primitive.MutableByteDoubleMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic com.gs.collections.api.map.primitive.ImmutableByteDoubleMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.ByteDoubleMappublic double get(byte key)
get in interface com.gs.collections.api.map.primitive.ByteDoubleMappublic double getIfAbsent(byte key,
double ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.ByteDoubleMappublic double getOrThrow(byte key)
getOrThrow in interface com.gs.collections.api.map.primitive.ByteDoubleMappublic boolean containsKey(byte key)
containsKey in interface com.gs.collections.api.map.primitive.ByteDoubleMapcontainsKey in interface ByteKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.ByteDoubleMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ByteDoubleProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.ByteDoubleMappublic com.gs.collections.api.LazyByteIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.ByteDoubleMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ByteDoublePair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.ByteDoubleMappublic ByteDoubleHashMap select(com.gs.collections.api.block.predicate.primitive.ByteDoublePredicate predicate)
select in interface com.gs.collections.api.map.primitive.ByteDoubleMapselect in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic ByteDoubleHashMap reject(com.gs.collections.api.block.predicate.primitive.ByteDoublePredicate predicate)
reject in interface com.gs.collections.api.map.primitive.ByteDoubleMapreject in interface com.gs.collections.api.map.primitive.MutableByteDoubleMappublic 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 AbstractMutableDoubleValuesMappublic com.gs.collections.api.set.primitive.MutableByteSet keySet()
keySet in interface com.gs.collections.api.map.primitive.ByteDoubleMappublic com.gs.collections.api.collection.primitive.MutableDoubleCollection values()
values in interface com.gs.collections.api.map.primitive.DoubleValuesMap