public class ByteDoubleHashMap extends AbstractMutableDoubleValuesMap implements MutableByteDoubleMap, Externalizable, MutableByteKeysMap
| Constructor and Description |
|---|
ByteDoubleHashMap() |
ByteDoubleHashMap(ByteDoubleMap map) |
ByteDoubleHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(byte key,
double toBeAdded) |
MutableByteDoubleMap |
asSynchronized() |
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) |
MutableDoubleIterator |
doubleIterator() |
boolean |
equals(Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(ByteProcedure procedure) |
void |
forEachKeyValue(ByteDoubleProcedure procedure) |
double |
get(byte key) |
double |
getIfAbsent(byte key,
double ifAbsent) |
double |
getIfAbsentPut(byte key,
double value) |
double |
getIfAbsentPut(byte key,
DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(byte key,
DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(byte key,
ByteToDoubleFunction function) |
double |
getOrThrow(byte key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
ObjectDoubleToObjectFunction<? super V,? extends V> function) |
MutableByteSet |
keySet() |
LazyByteIterable |
keysView() |
RichIterable<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(ByteDoubleMap map) |
void |
readExternal(ObjectInput in) |
ByteDoubleHashMap |
reject(ByteDoublePredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
double |
removeKeyIfAbsent(byte key,
double value) |
ByteDoubleHashMap |
select(ByteDoublePredicate predicate) |
ImmutableByteDoubleMap |
toImmutable() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
double |
updateValue(byte key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
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(ByteIterable keys) |
ByteDoubleHashMap |
withoutKey(byte key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, 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(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)
public boolean equals(Object obj)
ByteDoubleMapMap.equals(Object).equals in interface ByteDoubleMapequals in class Objectpublic int hashCode()
ByteDoubleMapMap.hashCode().hashCode in interface ByteDoubleMaphashCode in class Objectpublic String toString()
PrimitiveIterabletoString in interface ByteDoubleMaptoString in interface PrimitiveIterabletoString in class AbstractDoubleIterablepublic MutableDoubleIterator doubleIterator()
doubleIterator in interface DoubleIterabledoubleIterator in interface MutableDoubleValuesMappublic <V> V injectInto(V injectedValue,
ObjectDoubleToObjectFunction<? super V,? extends V> function)
injectInto in interface DoubleIterablepublic void clear()
clear in interface MutableDoubleValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
double value)
put in interface MutableByteDoubleMappublic void putAll(ByteDoubleMap map)
putAll in interface MutableByteDoubleMappublic void removeKey(byte key)
removeKey in interface MutableByteDoubleMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface MutableByteDoubleMappublic double removeKeyIfAbsent(byte key,
double value)
removeKeyIfAbsent in interface MutableByteDoubleMappublic double getIfAbsentPut(byte key,
double value)
getIfAbsentPut in interface MutableByteDoubleMappublic double getIfAbsentPut(byte key,
DoubleFunction0 function)
getIfAbsentPut in interface MutableByteDoubleMappublic <P> double getIfAbsentPutWith(byte key,
DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableByteDoubleMappublic double getIfAbsentPutWithKey(byte key,
ByteToDoubleFunction function)
getIfAbsentPutWithKey in interface MutableByteDoubleMappublic double addToValue(byte key,
double toBeAdded)
addToValue in interface MutableByteDoubleMappublic double updateValue(byte key,
double initialValueIfAbsent,
DoubleToDoubleFunction function)
updateValue in interface MutableByteDoubleMappublic ByteDoubleHashMap withKeyValue(byte key1, double value1)
withKeyValue in interface 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 MutableByteDoubleMappublic ByteDoubleHashMap withoutAllKeys(ByteIterable keys)
withoutAllKeys in interface MutableByteDoubleMappublic MutableByteDoubleMap asUnmodifiable()
asUnmodifiable in interface MutableByteDoubleMappublic MutableByteDoubleMap asSynchronized()
asSynchronized in interface MutableByteDoubleMappublic ImmutableByteDoubleMap toImmutable()
toImmutable in interface ByteDoubleMappublic double get(byte key)
get in interface ByteDoubleMappublic double getIfAbsent(byte key,
double ifAbsent)
getIfAbsent in interface ByteDoubleMappublic double getOrThrow(byte key)
getOrThrow in interface ByteDoubleMappublic boolean containsKey(byte key)
containsKey in interface ByteDoubleMapcontainsKey in interface ByteKeysMappublic void forEachKey(ByteProcedure procedure)
forEachKey in interface ByteDoubleMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(ByteDoubleProcedure procedure)
forEachKeyValue in interface ByteDoubleMappublic LazyByteIterable keysView()
keysView in interface ByteDoubleMappublic RichIterable<ByteDoublePair> keyValuesView()
keyValuesView in interface ByteDoubleMappublic ByteDoubleHashMap select(ByteDoublePredicate predicate)
select in interface ByteDoubleMapselect in interface MutableByteDoubleMappublic ByteDoubleHashMap reject(ByteDoublePredicate predicate)
reject in interface ByteDoubleMapreject in interface MutableByteDoubleMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableByteSet keySet()
keySet in interface ByteDoubleMappublic MutableDoubleCollection values()
values in interface DoubleValuesMapCopyright © 2004–2016. All rights reserved.