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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DoubleByteHashMap()DoubleByteHashMap(int initialCapacity)DoubleByteHashMap(DoubleByteMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byteaddToValue(double key, byte toBeAdded)MutableDoubleByteMapasSynchronized()MutableDoubleByteMapasUnmodifiable()MutableByteIteratorbyteIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(double key)booleanequals(Object obj)MutableByteDoubleMapflipUniqueValues()voidforEachKey(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)MutableDoubleSetkeySet()LazyDoubleIterablekeysView()RichIterable<DoubleBytePair>keyValuesView()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)voidreadExternal(ObjectInput in)DoubleByteHashMapreject(DoubleBytePredicate predicate)voidremove(double key)voidremoveKey(double key)byteremoveKeyIfAbsent(double key, byte value)DoubleByteHashMapselect(DoubleBytePredicate predicate)ImmutableDoubleByteMaptoImmutable()StringtoString()booleantrimToSize()byteupdateValue(double key, byte initialValueIfAbsent, ByteToByteFunction function)voidupdateValues(DoubleByteToByteFunction function)MutableByteCollectionvalues()DoubleByteHashMapwithKeysValues(double key1, byte value1, double key2, byte value2)DoubleByteHashMapwithKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3)DoubleByteHashMapwithKeysValues(double key1, byte value1, double key2, byte value2, double key3, byte value3, double key4, byte value4)DoubleByteHashMapwithKeyValue(double key1, byte value1)DoubleByteHashMapwithoutAllKeys(DoubleIterable keys)DoubleByteHashMapwithoutKey(double key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleByteMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.DoubleKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleByteMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
DoubleByteHashMap
public DoubleByteHashMap()
-
DoubleByteHashMap
public DoubleByteHashMap(int initialCapacity)
-
DoubleByteHashMap
public DoubleByteHashMap(DoubleByteMap map)
-
-
Method Detail
-
newWithKeysValues
public static DoubleByteHashMap newWithKeysValues(double key1, byte value1)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceDoubleByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceDoubleByteMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceDoubleByteMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractByteIterable
-
byteIterator
public MutableByteIterator 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
public void putAll(DoubleByteMap map)
- Specified by:
putAllin interfaceMutableDoubleByteMap
-
updateValues
public void updateValues(DoubleByteToByteFunction function)
- 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
public byte getIfAbsentPut(double key, ByteFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableDoubleByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(double key, ByteFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(double key, DoubleToByteFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleByteMap
-
addToValue
public byte addToValue(double key, byte toBeAdded)- Specified by:
addToValuein interfaceMutableDoubleByteMap
-
updateValue
public byte updateValue(double key, byte initialValueIfAbsent, ByteToByteFunction function)- Specified by:
updateValuein interfaceMutableDoubleByteMap
-
withKeyValue
public DoubleByteHashMap withKeyValue(double key1, byte value1)
- Specified by:
withKeyValuein interfaceMutableDoubleByteMap
-
withKeysValues
public DoubleByteHashMap withKeysValues(double key1, byte value1, double key2, byte value2)
-
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
public DoubleByteHashMap withoutKey(double key)
- Specified by:
withoutKeyin interfaceMutableDoubleByteMap
-
withoutAllKeys
public DoubleByteHashMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableDoubleByteMap
-
asUnmodifiable
public MutableDoubleByteMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleByteMap
-
asSynchronized
public MutableDoubleByteMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleByteMap
-
toImmutable
public ImmutableDoubleByteMap 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
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKeyin interfaceDoubleByteMap- Specified by:
forEachKeyin interfaceDoubleKeysMap
-
forEachKeyValue
public void forEachKeyValue(DoubleByteProcedure procedure)
- Specified by:
forEachKeyValuein interfaceDoubleByteMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysViewin interfaceDoubleByteMap
-
keyValuesView
public RichIterable<DoubleBytePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceDoubleByteMap
-
flipUniqueValues
public MutableByteDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceDoubleByteMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleByteMap
-
select
public DoubleByteHashMap select(DoubleBytePredicate predicate)
- Specified by:
selectin interfaceDoubleByteMap- Specified by:
selectin interfaceMutableDoubleByteMap
-
reject
public DoubleByteHashMap reject(DoubleBytePredicate predicate)
- Specified by:
rejectin interfaceDoubleByteMap- Specified by:
rejectin interfaceMutableDoubleByteMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void 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
public MutableDoubleSet keySet()
- Specified by:
keySetin interfaceDoubleByteMap
-
values
public MutableByteCollection values()
- Specified by:
valuesin interfaceByteValuesMap
-
-