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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteDoubleHashMap()ByteDoubleHashMap(int initialCapacity)ByteDoubleHashMap(ByteDoubleMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doubleaddToValue(byte key, double toBeAdded)MutableByteDoubleMapasSynchronized()MutableByteDoubleMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(byte key)MutableDoubleIteratordoubleIterator()booleanequals(Object obj)MutableDoubleByteMapflipUniqueValues()voidforEachKey(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)MutableByteSetkeySet()LazyByteIterablekeysView()RichIterable<ByteDoublePair>keyValuesView()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)voidreadExternal(ObjectInput in)ByteDoubleHashMapreject(ByteDoublePredicate predicate)voidremove(byte key)voidremoveKey(byte key)doubleremoveKeyIfAbsent(byte key, double value)ByteDoubleHashMapselect(ByteDoublePredicate predicate)ImmutableByteDoubleMaptoImmutable()StringtoString()booleantrimToSize()doubleupdateValue(byte key, double initialValueIfAbsent, DoubleToDoubleFunction function)voidupdateValues(ByteDoubleToDoubleFunction function)MutableDoubleCollectionvalues()ByteDoubleHashMapwithKeysValues(byte key1, double value1, byte key2, double value2)ByteDoubleHashMapwithKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3)ByteDoubleHashMapwithKeysValues(byte key1, double value1, byte key2, double value2, byte key3, double value3, byte key4, double value4)ByteDoubleHashMapwithKeyValue(byte key1, double value1)ByteDoubleHashMapwithoutAllKeys(ByteIterable keys)ByteDoubleHashMapwithoutKey(byte key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractDoubleIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteDoubleMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.ByteKeysMap
isEmpty, notEmpty, size
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteDoubleMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
ByteDoubleHashMap
public ByteDoubleHashMap()
-
ByteDoubleHashMap
public ByteDoubleHashMap(int initialCapacity)
-
ByteDoubleHashMap
public ByteDoubleHashMap(ByteDoubleMap map)
-
-
Method Detail
-
newWithKeysValues
public static ByteDoubleHashMap newWithKeysValues(byte key1, double value1)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceByteDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceByteDoubleMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceByteDoubleMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractDoubleIterable
-
doubleIterator
public MutableDoubleIterator 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
public void putAll(ByteDoubleMap map)
- Specified by:
putAllin interfaceMutableByteDoubleMap
-
updateValues
public void updateValues(ByteDoubleToDoubleFunction function)
- 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
public double getIfAbsentPut(byte key, DoubleFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableByteDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(byte key, DoubleFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableByteDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(byte key, ByteToDoubleFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteDoubleMap
-
addToValue
public double addToValue(byte key, double toBeAdded)- Specified by:
addToValuein interfaceMutableByteDoubleMap
-
updateValue
public double updateValue(byte key, double initialValueIfAbsent, DoubleToDoubleFunction function)- Specified by:
updateValuein interfaceMutableByteDoubleMap
-
withKeyValue
public ByteDoubleHashMap withKeyValue(byte key1, double value1)
- Specified by:
withKeyValuein interfaceMutableByteDoubleMap
-
withKeysValues
public ByteDoubleHashMap withKeysValues(byte key1, double value1, byte key2, double value2)
-
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
public ByteDoubleHashMap withoutKey(byte key)
- Specified by:
withoutKeyin interfaceMutableByteDoubleMap
-
withoutAllKeys
public ByteDoubleHashMap withoutAllKeys(ByteIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableByteDoubleMap
-
asUnmodifiable
public MutableByteDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableByteDoubleMap
-
asSynchronized
public MutableByteDoubleMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableByteDoubleMap
-
toImmutable
public ImmutableByteDoubleMap 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
public void forEachKey(ByteProcedure procedure)
- Specified by:
forEachKeyin interfaceByteDoubleMap- Specified by:
forEachKeyin interfaceByteKeysMap
-
forEachKeyValue
public void forEachKeyValue(ByteDoubleProcedure procedure)
- Specified by:
forEachKeyValuein interfaceByteDoubleMap
-
keysView
public LazyByteIterable keysView()
- Specified by:
keysViewin interfaceByteDoubleMap
-
keyValuesView
public RichIterable<ByteDoublePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceByteDoubleMap
-
flipUniqueValues
public MutableDoubleByteMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceByteDoubleMap- Specified by:
flipUniqueValuesin interfaceMutableByteDoubleMap
-
select
public ByteDoubleHashMap select(ByteDoublePredicate predicate)
- Specified by:
selectin interfaceByteDoubleMap- Specified by:
selectin interfaceMutableByteDoubleMap
-
reject
public ByteDoubleHashMap reject(ByteDoublePredicate predicate)
- Specified by:
rejectin interfaceByteDoubleMap- Specified by:
rejectin interfaceMutableByteDoubleMap
-
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 MutableByteSet keySet()
- Specified by:
keySetin interfaceByteDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
valuesin interfaceDoubleValuesMap
-
-