Class ByteDoubleHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractDoubleIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableDoubleValuesMap
org.eclipse.collections.impl.map.mutable.primitive.ByteDoubleHashMap
- All Implemented Interfaces:
Externalizable,Serializable,DoubleIterable,ByteDoubleMap,DoubleValuesMap,MutableByteDoubleMap,MutableDoubleValuesMap,PrimitiveIterable,MutableByteKeysMap,ByteKeysMap
public class ByteDoubleHashMap
extends AbstractMutableDoubleValuesMap
implements MutableByteDoubleMap, Externalizable, MutableByteKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleaddToValue(byte key, double toBeAdded) booleanallSatisfyKeyValue(ByteDoublePredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(byte key) booleanvoidforEachKey(ByteProcedure procedure) voidforEachKeyValue(ByteDoubleProcedure procedure) doubleget(byte key) doublegetAndPut(byte key, double putValue, double defaultValue) doublegetIfAbsent(byte key, double ifAbsent) doublegetIfAbsentPut(byte key, double value) doublegetIfAbsentPut(byte key, DoubleFunction0 function) <P> doublegetIfAbsentPutWith(byte key, DoubleFunction<? super P> function, P parameter) doublegetIfAbsentPutWithKey(byte key, ByteToDoubleFunction function) doublegetOrThrow(byte key) inthashCode()<V> VinjectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V, ? extends V> function) keySet()keysView()static ByteDoubleHashMapnewWithKeysValues(byte key1, double value1) static ByteDoubleHashMapnewWithKeysValues(byte key1, double value1, byte key2, double value2) static ByteDoubleHashMapnewWithKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3) static ByteDoubleHashMapnewWithKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3, byte key4, double value4) voidput(byte key, double value) voidputAll(ByteDoubleMap map) voidreject(ByteDoublePredicate predicate) voidremove(byte key) voidremoveKey(byte key) doubleremoveKeyIfAbsent(byte key, double value) select(ByteDoublePredicate predicate) toString()booleandoubleupdateValue(byte key, double initialValueIfAbsent, DoubleToDoubleFunction function) voidupdateValues(ByteDoubleToDoubleFunction function) values()withKeysValues(byte key1, double value1, byte key2, double value2) withKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3) withKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3, byte key4, double value4) withKeyValue(byte key1, double value1) withoutAllKeys(ByteIterable keys) withoutKey(byte key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableDoubleValuesMap
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArrayMethods inherited from class org.eclipse.collections.impl.primitive.AbstractDoubleIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.map.primitive.ByteDoubleMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.ByteKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.DoubleIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.DoubleValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteDoubleMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
ByteDoubleHashMap
public ByteDoubleHashMap() -
ByteDoubleHashMap
public ByteDoubleHashMap(int initialCapacity) -
ByteDoubleHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
public static ByteDoubleHashMap newWithKeysValues(byte key1, double value1, byte key2, double value2) -
newWithKeysValues
public static ByteDoubleHashMap newWithKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3) -
newWithKeysValues
public static ByteDoubleHashMap newWithKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3, byte key4, double value4) -
equals
- Specified by:
equalsin interfaceByteDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceByteDoubleMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceByteDoubleMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractDoubleIterable
-
doubleIterator
- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableDoubleValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceDoubleIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableByteKeysMap- Specified by:
clearin interfaceMutableDoubleValuesMap
-
put
public void put(byte key, double value) - Specified by:
putin interfaceMutableByteDoubleMap
-
putAll
- Specified by:
putAllin interfaceMutableByteDoubleMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableByteDoubleMap
-
removeKey
public void removeKey(byte key) - Specified by:
removeKeyin interfaceMutableByteDoubleMap- Specified by:
removeKeyin interfaceMutableByteKeysMap
-
remove
public void remove(byte key) - Specified by:
removein interfaceMutableByteDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(byte key, double value) - Specified by:
removeKeyIfAbsentin interfaceMutableByteDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(byte key, double value) - Specified by:
getIfAbsentPutin interfaceMutableByteDoubleMap
-
getAndPut
public double getAndPut(byte key, double putValue, double defaultValue) - Specified by:
getAndPutin interfaceMutableByteDoubleMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableByteDoubleMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableByteDoubleMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteDoubleMap
-
addToValue
public double addToValue(byte key, double toBeAdded) - Specified by:
addToValuein interfaceMutableByteDoubleMap
-
updateValue
- Specified by:
updateValuein interfaceMutableByteDoubleMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableByteDoubleMap
-
withKeysValues
-
withKeysValues
public ByteDoubleHashMap withKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3) -
withKeysValues
public ByteDoubleHashMap withKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3, byte key4, double value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableByteDoubleMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableByteDoubleMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableByteDoubleMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableByteDoubleMap
-
toImmutable
- Specified by:
toImmutablein interfaceByteDoubleMap
-
get
public double get(byte key) - Specified by:
getin interfaceByteDoubleMap
-
getIfAbsent
public double getIfAbsent(byte key, double ifAbsent) - Specified by:
getIfAbsentin interfaceByteDoubleMap
-
getOrThrow
public double getOrThrow(byte key) - Specified by:
getOrThrowin interfaceByteDoubleMap
-
containsKey
public boolean containsKey(byte key) - Specified by:
containsKeyin interfaceByteDoubleMap- Specified by:
containsKeyin interfaceByteKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceByteDoubleMap- Specified by:
forEachKeyin interfaceByteKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceByteDoubleMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceByteDoubleMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceByteDoubleMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceByteDoubleMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceByteDoubleMap- Specified by:
flipUniqueValuesin interfaceMutableByteDoubleMap
-
select
- Specified by:
selectin interfaceByteDoubleMap- Specified by:
selectin interfaceMutableByteDoubleMap
-
reject
- Specified by:
rejectin interfaceByteDoubleMap- Specified by:
rejectin interfaceMutableByteDoubleMap
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
compact
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels. -
keySet
- Specified by:
keySetin interfaceByteDoubleMap
-
values
- Specified by:
valuesin interfaceDoubleValuesMap
-
trimToSize()instead