Class DoubleByteHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractByteIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
org.eclipse.collections.impl.map.mutable.primitive.DoubleByteHashMap
- All Implemented Interfaces:
Externalizable,Serializable,ByteIterable,ByteValuesMap,DoubleByteMap,MutableByteValuesMap,MutableDoubleByteMap,PrimitiveIterable,MutableDoubleKeysMap,DoubleKeysMap
public class DoubleByteHashMap
extends AbstractMutableByteValuesMap
implements MutableDoubleByteMap, Externalizable, MutableDoubleKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteaddToValue(double key, byte toBeAdded) booleanallSatisfyKeyValue(DoubleBytePredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(double key) booleanvoidforEachKey(DoubleProcedure procedure) voidforEachKeyValue(DoubleByteProcedure procedure) byteget(double key) bytegetAndPut(double key, byte putValue, byte defaultValue) bytegetIfAbsent(double key, byte ifAbsent) bytegetIfAbsentPut(double key, byte value) bytegetIfAbsentPut(double key, ByteFunction0 function) <P> bytegetIfAbsentPutWith(double key, ByteFunction<? super P> function, P parameter) bytegetIfAbsentPutWithKey(double key, DoubleToByteFunction function) bytegetOrThrow(double key) inthashCode()<V> VinjectInto(V injectedValue, ObjectByteToObjectFunction<? super V, ? extends V> function) keySet()keysView()static DoubleByteHashMapnewWithKeysValues(double key1, byte value1) static DoubleByteHashMapnewWithKeysValues(double key1, byte value1, double key2, byte value2) static DoubleByteHashMapnewWithKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3) static DoubleByteHashMapnewWithKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3, double key4, byte value4) voidput(double key, byte value) voidputAll(DoubleByteMap map) voidreject(DoubleBytePredicate predicate) voidremove(double key) voidremoveKey(double key) byteremoveKeyIfAbsent(double key, byte value) select(DoubleBytePredicate predicate) toString()booleanbyteupdateValue(double key, byte initialValueIfAbsent, ByteToByteFunction function) voidupdateValues(DoubleByteToByteFunction function) values()withKeysValues(double key1, byte value1, double key2, byte value2) withKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3) withKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3, double key4, byte value4) withKeyValue(double key1, byte value1) withoutAllKeys(DoubleIterable keys) withoutKey(double key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
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.AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.ByteIterable
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.ByteValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.DoubleByteMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.DoubleKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleByteMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
DoubleByteHashMap
public DoubleByteHashMap() -
DoubleByteHashMap
public DoubleByteHashMap(int initialCapacity) -
DoubleByteHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
public static DoubleByteHashMap newWithKeysValues(double key1, byte value1, double key2, byte value2) -
newWithKeysValues
public static DoubleByteHashMap newWithKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3) -
newWithKeysValues
public static DoubleByteHashMap newWithKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3, double key4, byte value4) -
equals
- Specified by:
equalsin interfaceDoubleByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceDoubleByteMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceDoubleByteMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractByteIterable
-
byteIterator
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableByteValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectByteToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceByteIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableByteValuesMap- Specified by:
clearin interfaceMutableDoubleKeysMap
-
put
public void put(double key, byte value) - Specified by:
putin interfaceMutableDoubleByteMap
-
putAll
- Specified by:
putAllin interfaceMutableDoubleByteMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableDoubleByteMap
-
removeKey
public void removeKey(double key) - Specified by:
removeKeyin interfaceMutableDoubleByteMap- Specified by:
removeKeyin interfaceMutableDoubleKeysMap
-
remove
public void remove(double key) - Specified by:
removein interfaceMutableDoubleByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(double key, byte value) - Specified by:
removeKeyIfAbsentin interfaceMutableDoubleByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(double key, byte value) - Specified by:
getIfAbsentPutin interfaceMutableDoubleByteMap
-
getAndPut
public byte getAndPut(double key, byte putValue, byte defaultValue) - Specified by:
getAndPutin interfaceMutableDoubleByteMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableDoubleByteMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleByteMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleByteMap
-
addToValue
public byte addToValue(double key, byte toBeAdded) - Specified by:
addToValuein interfaceMutableDoubleByteMap
-
updateValue
- Specified by:
updateValuein interfaceMutableDoubleByteMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableDoubleByteMap
-
withKeysValues
-
withKeysValues
public DoubleByteHashMap withKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3) -
withKeysValues
public DoubleByteHashMap withKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3, double key4, byte value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableDoubleByteMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableDoubleByteMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableDoubleByteMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableDoubleByteMap
-
toImmutable
- Specified by:
toImmutablein interfaceDoubleByteMap
-
get
public byte get(double key) - Specified by:
getin interfaceDoubleByteMap
-
getIfAbsent
public byte getIfAbsent(double key, byte ifAbsent) - Specified by:
getIfAbsentin interfaceDoubleByteMap
-
getOrThrow
public byte getOrThrow(double key) - Specified by:
getOrThrowin interfaceDoubleByteMap
-
containsKey
public boolean containsKey(double key) - Specified by:
containsKeyin interfaceDoubleByteMap- Specified by:
containsKeyin interfaceDoubleKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceDoubleByteMap- Specified by:
forEachKeyin interfaceDoubleKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceDoubleByteMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceDoubleByteMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceDoubleByteMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceDoubleByteMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceDoubleByteMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleByteMap
-
select
- Specified by:
selectin interfaceDoubleByteMap- Specified by:
selectin interfaceMutableDoubleByteMap
-
reject
- Specified by:
rejectin interfaceDoubleByteMap- Specified by:
rejectin interfaceMutableDoubleByteMap
-
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 interfaceDoubleByteMap
-
values
- Specified by:
valuesin interfaceByteValuesMap
-
trimToSize()instead