java.io.Externalizable, java.io.Serializable, ByteIterable, ByteValuesMap, DoubleByteMap, MutableByteValuesMap, MutableDoubleByteMap, PrimitiveIterable, MutableDoubleKeysMap, DoubleKeysMappublic class DoubleByteHashMap extends AbstractMutableByteValuesMap implements MutableDoubleByteMap, java.io.Externalizable, MutableDoubleKeysMap
| Constructor | Description |
|---|---|
DoubleByteHashMap() |
|
DoubleByteHashMap(int initialCapacity) |
|
DoubleByteHashMap(DoubleByteMap map) |
| Modifier and Type | Method | Description |
|---|---|---|
byte |
addToValue(double key,
byte toBeAdded) |
|
MutableDoubleByteMap |
asSynchronized() |
|
MutableDoubleByteMap |
asUnmodifiable() |
|
MutableByteIterator |
byteIterator() |
Returns a primitive iterator that can be used to iterate over the ByteIterable in an
imperative style.
|
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). |
MutableByteDoubleMap |
flipUniqueValues() |
Return the ByteDoubleMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
void |
forEachKey(DoubleProcedure procedure) |
|
void |
forEachKeyValue(DoubleByteProcedure procedure) |
|
byte |
get(double key) |
|
byte |
getIfAbsent(double key,
byte ifAbsent) |
|
byte |
getIfAbsentPut(double key,
byte value) |
|
byte |
getIfAbsentPut(double key,
ByteFunction0 function) |
|
<P> byte |
getIfAbsentPutWith(double key,
ByteFunction<? super P> function,
P parameter) |
|
byte |
getIfAbsentPutWithKey(double key,
DoubleToByteFunction function) |
|
byte |
getOrThrow(double key) |
|
int |
hashCode() |
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
ObjectByteToObjectFunction<? super V,? extends V> function) |
|
MutableDoubleSet |
keySet() |
|
LazyDoubleIterable |
keysView() |
|
RichIterable<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(DoubleByteMap map) |
|
void |
readExternal(java.io.ObjectInput in) |
|
DoubleByteHashMap |
reject(DoubleBytePredicate predicate) |
|
void |
remove(double key) |
|
void |
removeKey(double key) |
|
byte |
removeKeyIfAbsent(double key,
byte value) |
|
DoubleByteHashMap |
select(DoubleBytePredicate predicate) |
|
ImmutableDoubleByteMap |
toImmutable() |
|
java.lang.String |
toString() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
byte |
updateValue(double key,
byte initialValueIfAbsent,
ByteToByteFunction function) |
|
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(DoubleIterable keys) |
|
DoubleByteHashMap |
withoutKey(double key) |
|
void |
writeExternal(java.io.ObjectOutput out) |
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListallSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListcontainsValue, forEachValue, tapisEmpty, notEmpty, sizecollect, reject, selectputPairappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizepublic DoubleByteHashMap()
public DoubleByteHashMap(int initialCapacity)
public DoubleByteHashMap(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)
public boolean equals(java.lang.Object obj)
DoubleByteMapMap.equals(Object).equals in interface DoubleByteMapequals in class java.lang.Objectpublic int hashCode()
DoubleByteMapMap.hashCode().hashCode in interface DoubleByteMaphashCode in class java.lang.Objectpublic java.lang.String toString()
PrimitiveIterable
Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
toString in interface DoubleByteMaptoString in interface PrimitiveIterabletoString in class AbstractByteIterableAbstractCollection.toString()public MutableByteIterator byteIterator()
ByteIterablebyteIterator in interface ByteIterablebyteIterator in interface MutableByteValuesMappublic <V> V injectInto(V injectedValue,
ObjectByteToObjectFunction<? super V,? extends V> function)
injectInto in interface ByteIterablepublic void clear()
clear in interface MutableByteValuesMapclear in interface MutableDoubleKeysMappublic void put(double key,
byte value)
put in interface MutableDoubleByteMappublic void putAll(DoubleByteMap map)
putAll in interface MutableDoubleByteMappublic void removeKey(double key)
removeKey in interface MutableDoubleByteMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface MutableDoubleByteMappublic byte removeKeyIfAbsent(double key,
byte value)
removeKeyIfAbsent in interface MutableDoubleByteMappublic byte getIfAbsentPut(double key,
byte value)
getIfAbsentPut in interface MutableDoubleByteMappublic byte getIfAbsentPut(double key,
ByteFunction0 function)
getIfAbsentPut in interface MutableDoubleByteMappublic <P> byte getIfAbsentPutWith(double key,
ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableDoubleByteMappublic byte getIfAbsentPutWithKey(double key,
DoubleToByteFunction function)
getIfAbsentPutWithKey in interface MutableDoubleByteMappublic byte addToValue(double key,
byte toBeAdded)
addToValue in interface MutableDoubleByteMappublic byte updateValue(double key,
byte initialValueIfAbsent,
ByteToByteFunction function)
updateValue in interface MutableDoubleByteMappublic DoubleByteHashMap withKeyValue(double key1, byte value1)
withKeyValue in interface 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 MutableDoubleByteMappublic DoubleByteHashMap withoutAllKeys(DoubleIterable keys)
withoutAllKeys in interface MutableDoubleByteMappublic MutableDoubleByteMap asUnmodifiable()
asUnmodifiable in interface MutableDoubleByteMappublic MutableDoubleByteMap asSynchronized()
asSynchronized in interface MutableDoubleByteMappublic ImmutableDoubleByteMap toImmutable()
toImmutable in interface DoubleByteMappublic byte get(double key)
get in interface DoubleByteMappublic byte getIfAbsent(double key,
byte ifAbsent)
getIfAbsent in interface DoubleByteMappublic byte getOrThrow(double key)
getOrThrow in interface DoubleByteMappublic boolean containsKey(double key)
containsKey in interface DoubleByteMapcontainsKey in interface DoubleKeysMappublic void forEachKey(DoubleProcedure procedure)
forEachKey in interface DoubleByteMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(DoubleByteProcedure procedure)
forEachKeyValue in interface DoubleByteMappublic LazyDoubleIterable keysView()
keysView in interface DoubleByteMappublic RichIterable<DoubleBytePair> keyValuesView()
keyValuesView in interface DoubleByteMappublic MutableByteDoubleMap flipUniqueValues()
DoubleByteMapflipUniqueValues in interface DoubleByteMapflipUniqueValues in interface MutableDoubleByteMappublic DoubleByteHashMap select(DoubleBytePredicate predicate)
select in interface DoubleByteMapselect in interface MutableDoubleByteMappublic DoubleByteHashMap reject(DoubleBytePredicate predicate)
reject in interface DoubleByteMapreject in interface 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()
public MutableDoubleSet keySet()
keySet in interface DoubleByteMappublic MutableByteCollection values()
values in interface ByteValuesMapCopyright © 2004–2018. All rights reserved.