Class DoubleDoubleHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractDoubleIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableDoubleValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.DoubleDoubleHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,DoubleIterable,DoubleDoubleMap,DoubleValuesMap,MutableDoubleDoubleMap,MutableDoubleValuesMap,PrimitiveIterable,MutableDoubleKeysMap,DoubleKeysMap
public class DoubleDoubleHashMap extends AbstractMutableDoubleValuesMap implements MutableDoubleDoubleMap, Externalizable, MutableDoubleKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DoubleDoubleHashMap()DoubleDoubleHashMap(int initialCapacity)DoubleDoubleHashMap(DoubleDoubleMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doubleaddToValue(double key, double toBeAdded)MutableDoubleDoubleMapasSynchronized()MutableDoubleDoubleMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(double key)MutableDoubleIteratordoubleIterator()booleanequals(Object obj)MutableDoubleDoubleMapflipUniqueValues()voidforEachKey(DoubleProcedure procedure)voidforEachKeyValue(DoubleDoubleProcedure procedure)doubleget(double key)doublegetAndPut(double key, double putValue, double defaultValue)doublegetIfAbsent(double key, double ifAbsent)doublegetIfAbsentPut(double key, double value)doublegetIfAbsentPut(double key, DoubleFunction0 function)<P> doublegetIfAbsentPutWith(double key, DoubleFunction<? super P> function, P parameter)doublegetIfAbsentPutWithKey(double key, DoubleToDoubleFunction function)doublegetOrThrow(double key)inthashCode()<V> VinjectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V,? extends V> function)MutableDoubleSetkeySet()LazyDoubleIterablekeysView()RichIterable<DoubleDoublePair>keyValuesView()static DoubleDoubleHashMapnewWithKeysValues(double key1, double value1)static DoubleDoubleHashMapnewWithKeysValues(double key1, double value1, double key2, double value2)static DoubleDoubleHashMapnewWithKeysValues(double key1, double value1, double key2, double value2, double key3, double value3)static DoubleDoubleHashMapnewWithKeysValues(double key1, double value1, double key2, double value2, double key3, double value3, double key4, double value4)voidput(double key, double value)voidputAll(DoubleDoubleMap map)voidreadExternal(ObjectInput in)DoubleDoubleHashMapreject(DoubleDoublePredicate predicate)voidremove(double key)voidremoveKey(double key)doubleremoveKeyIfAbsent(double key, double value)DoubleDoubleHashMapselect(DoubleDoublePredicate predicate)ImmutableDoubleDoubleMaptoImmutable()StringtoString()booleantrimToSize()doubleupdateValue(double key, double initialValueIfAbsent, DoubleToDoubleFunction function)voidupdateValues(DoubleDoubleToDoubleFunction function)MutableDoubleCollectionvalues()DoubleDoubleHashMapwithKeysValues(double key1, double value1, double key2, double value2)DoubleDoubleHashMapwithKeysValues(double key1, double value1, double key2, double value2, double key3, double value3)DoubleDoubleHashMapwithKeysValues(double key1, double value1, double key2, double value2, double key3, double value3, double key4, double value4)DoubleDoubleHashMapwithKeyValue(double key1, double value1)DoubleDoubleHashMapwithoutAllKeys(DoubleIterable keys)DoubleDoubleHashMapwithoutKey(double 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.DoubleDoubleMap
injectIntoKeyValue
-
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.impl.map.primitive.DoubleKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMap
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
-
DoubleDoubleHashMap
public DoubleDoubleHashMap()
-
DoubleDoubleHashMap
public DoubleDoubleHashMap(int initialCapacity)
-
DoubleDoubleHashMap
public DoubleDoubleHashMap(DoubleDoubleMap map)
-
-
Method Detail
-
newWithKeysValues
public static DoubleDoubleHashMap newWithKeysValues(double key1, double value1)
-
newWithKeysValues
public static DoubleDoubleHashMap newWithKeysValues(double key1, double value1, double key2, double value2)
-
newWithKeysValues
public static DoubleDoubleHashMap newWithKeysValues(double key1, double value1, double key2, double value2, double key3, double value3)
-
newWithKeysValues
public static DoubleDoubleHashMap newWithKeysValues(double key1, double value1, double key2, double value2, double key3, double value3, double key4, double value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceDoubleDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceDoubleDoubleMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceDoubleDoubleMap- 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 interfaceMutableDoubleKeysMap- Specified by:
clearin interfaceMutableDoubleValuesMap
-
put
public void put(double key, double value)- Specified by:
putin interfaceMutableDoubleDoubleMap
-
putAll
public void putAll(DoubleDoubleMap map)
- Specified by:
putAllin interfaceMutableDoubleDoubleMap
-
updateValues
public void updateValues(DoubleDoubleToDoubleFunction function)
- Specified by:
updateValuesin interfaceMutableDoubleDoubleMap
-
removeKey
public void removeKey(double key)
- Specified by:
removeKeyin interfaceMutableDoubleDoubleMap- Specified by:
removeKeyin interfaceMutableDoubleKeysMap
-
remove
public void remove(double key)
- Specified by:
removein interfaceMutableDoubleDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(double key, double value)- Specified by:
removeKeyIfAbsentin interfaceMutableDoubleDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(double key, double value)- Specified by:
getIfAbsentPutin interfaceMutableDoubleDoubleMap
-
getAndPut
public double getAndPut(double key, double putValue, double defaultValue)- Specified by:
getAndPutin interfaceMutableDoubleDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(double key, DoubleFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableDoubleDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(double key, DoubleFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(double key, DoubleToDoubleFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleDoubleMap
-
addToValue
public double addToValue(double key, double toBeAdded)- Specified by:
addToValuein interfaceMutableDoubleDoubleMap
-
updateValue
public double updateValue(double key, double initialValueIfAbsent, DoubleToDoubleFunction function)- Specified by:
updateValuein interfaceMutableDoubleDoubleMap
-
withKeyValue
public DoubleDoubleHashMap withKeyValue(double key1, double value1)
- Specified by:
withKeyValuein interfaceMutableDoubleDoubleMap
-
withKeysValues
public DoubleDoubleHashMap withKeysValues(double key1, double value1, double key2, double value2)
-
withKeysValues
public DoubleDoubleHashMap withKeysValues(double key1, double value1, double key2, double value2, double key3, double value3)
-
withKeysValues
public DoubleDoubleHashMap withKeysValues(double key1, double value1, double key2, double value2, double key3, double value3, double key4, double value4)
-
withoutKey
public DoubleDoubleHashMap withoutKey(double key)
- Specified by:
withoutKeyin interfaceMutableDoubleDoubleMap
-
withoutAllKeys
public DoubleDoubleHashMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableDoubleDoubleMap
-
asUnmodifiable
public MutableDoubleDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleDoubleMap
-
asSynchronized
public MutableDoubleDoubleMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleDoubleMap
-
toImmutable
public ImmutableDoubleDoubleMap toImmutable()
- Specified by:
toImmutablein interfaceDoubleDoubleMap
-
get
public double get(double key)
- Specified by:
getin interfaceDoubleDoubleMap
-
getIfAbsent
public double getIfAbsent(double key, double ifAbsent)- Specified by:
getIfAbsentin interfaceDoubleDoubleMap
-
getOrThrow
public double getOrThrow(double key)
- Specified by:
getOrThrowin interfaceDoubleDoubleMap
-
containsKey
public boolean containsKey(double key)
- Specified by:
containsKeyin interfaceDoubleDoubleMap- Specified by:
containsKeyin interfaceDoubleKeysMap
-
forEachKey
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKeyin interfaceDoubleDoubleMap- Specified by:
forEachKeyin interfaceDoubleKeysMap
-
forEachKeyValue
public void forEachKeyValue(DoubleDoubleProcedure procedure)
- Specified by:
forEachKeyValuein interfaceDoubleDoubleMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysViewin interfaceDoubleDoubleMap
-
keyValuesView
public RichIterable<DoubleDoublePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceDoubleDoubleMap
-
flipUniqueValues
public MutableDoubleDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceDoubleDoubleMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleDoubleMap
-
select
public DoubleDoubleHashMap select(DoubleDoublePredicate predicate)
- Specified by:
selectin interfaceDoubleDoubleMap- Specified by:
selectin interfaceMutableDoubleDoubleMap
-
reject
public DoubleDoubleHashMap reject(DoubleDoublePredicate predicate)
- Specified by:
rejectin interfaceDoubleDoubleMap- Specified by:
rejectin interfaceMutableDoubleDoubleMap
-
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 interfaceDoubleDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
valuesin interfaceDoubleValuesMap
-
-