Class ObjectDoubleHashMapWithHashingStrategy<K>
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.ObjectDoubleHashMapWithHashingStrategy<K>
- All Implemented Interfaces:
Externalizable,Serializable,DoubleIterable,MutableObjectDoubleMap<K>,ObjectDoubleMap<K>,PrimitiveIterable
public class ObjectDoubleHashMapWithHashingStrategy<K>
extends Object
implements MutableObjectDoubleMap<K>, Externalizable
This file was automatically generated from template file objectPrimitiveHashMapWithHashingStrategy.stg.
- Since:
- 7.0.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Use ObjectDoubleHashMapWithHashingStrategy(HashingStrategy) instead.ObjectDoubleHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy) ObjectDoubleHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity) ObjectDoubleHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectDoubleMap<? extends K> map) -
Method Summary
Modifier and TypeMethodDescriptiondoubleaddToValue(K key, double toBeAdded) booleanallSatisfy(DoublePredicate predicate) booleanallSatisfyKeyValue(ObjectDoublePredicate<K> predicate) booleananySatisfy(DoublePredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V> MutableCollection<V>collect(DoubleToObjectFunction<? extends V> function) voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontains(double value) booleancontainsAll(double... source) booleancontainsAll(DoubleIterable source) booleancontainsKey(Object key) booleancontainsValue(double value) intcount(DoublePredicate predicate) doubledetectIfNone(DoublePredicate predicate, double ifNone) voideach(DoubleProcedure procedure) booleanvoidforEachKey(Procedure<? super K> procedure) voidforEachKeyValue(ObjectDoubleProcedure<? super K> procedure) voidforEachValue(DoubleProcedure procedure) doubledoubledoublegetIfAbsent(Object key, double ifAbsent) doublegetIfAbsentPut(K key, double value) doublegetIfAbsentPut(K key, DoubleFunction0 function) <P> doublegetIfAbsentPutWith(K key, DoubleFunction<? super P> function, P parameter) doublegetIfAbsentPutWithKey(K key, DoubleFunction<? super K> function) doublegetOrThrow(Object key) inthashCode()<V> VinjectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V, ? extends V> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) doublemax()doublemaxIfEmpty(double defaultValue) doublemedian()doublemin()doubleminIfEmpty(double defaultValue) static <K> ObjectDoubleHashMapWithHashingStrategy<K>newMap(HashingStrategy<? super K> hashingStrategy) static <K> ObjectDoubleHashMapWithHashingStrategy<K>newMap(HashingStrategy<? super K> hashingStrategy, ObjectDoubleMap<K> map) static <K> ObjectDoubleHashMapWithHashingStrategy<K>static <K> ObjectDoubleHashMapWithHashingStrategy<K>newMapWithInitialCapacity(HashingStrategy<? super K> hashingStrategy, int initialCapacity) static <K> ObjectDoubleHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, double value1) static <K> ObjectDoubleHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, double value1, K key2, double value2) static <K> ObjectDoubleHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, double value1, K key2, double value2, K key3, double value3) static <K> ObjectDoubleHashMapWithHashingStrategy<K>newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, double value1, K key2, double value2, K key3, double value3, K key4, double value4) booleannoneSatisfy(DoublePredicate predicate) booleannotEmpty()voidvoidputAll(ObjectDoubleMap<? extends K> map) voidreject(DoublePredicate predicate) reject(ObjectDoublePredicate<? super K> predicate) voidvoidvoidremoveKeyAtIndex(K key, int index) doubleremoveKeyIfAbsent(K key, double value) select(DoublePredicate predicate) select(ObjectDoublePredicate<? super K> predicate) intsize()doublesum()double[]toArray()double[]toArray(double[] target) toBag()toList()toSet()double[]toString()booleandoubleupdateValue(K key, double initialValueIfAbsent, DoubleToDoubleFunction function) voidupdateValues(ObjectDoubleToDoubleFunction<? super K> function) values()withKeysValues(K key1, double value1, K key2, double value2) withKeysValues(K key1, double value1, K key2, double value2, K key3, double value3) withKeysValues(K key1, double value1, K key2, double value2, K key3, double value3, K key4, double value4) withKeyValue(K key1, double value1) withoutAllKeys(Iterable<? extends K> keys) withoutKey(K key) voidMethods inherited from interface org.eclipse.collections.api.DoubleIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap
putPair, tap, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap
injectIntoKeyValue
-
Field Details
-
EMPTY_VALUE
public static final double EMPTY_VALUE- See Also:
-
-
Constructor Details
-
ObjectDoubleHashMapWithHashingStrategy
Deprecated.Use ObjectDoubleHashMapWithHashingStrategy(HashingStrategy) instead. -
ObjectDoubleHashMapWithHashingStrategy
-
ObjectDoubleHashMapWithHashingStrategy
public ObjectDoubleHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity) -
ObjectDoubleHashMapWithHashingStrategy
public ObjectDoubleHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectDoubleMap<? extends K> map)
-
-
Method Details
-
newMap
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newMap(HashingStrategy<? super K> hashingStrategy) -
newMap
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newMap(HashingStrategy<? super K> hashingStrategy, ObjectDoubleMap<K> map) -
newMap
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newMap(ObjectDoubleHashMapWithHashingStrategy<K> map) -
newMapWithInitialCapacity
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newMapWithInitialCapacity(HashingStrategy<? super K> hashingStrategy, int initialCapacity) -
newWithKeysValues
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, double value1) -
newWithKeysValues
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, double value1, K key2, double value2) -
newWithKeysValues
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, double value1, K key2, double value2, K key3, double value3) -
newWithKeysValues
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newWithKeysValues(HashingStrategy<? super K> hashingStrategy, K key1, double value1, K key2, double value2, K key3, double value3, K key4, double value4) -
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toStringin interfaceObjectDoubleMap<K>- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
doubleIterator
- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableObjectDoubleMap<K>
-
toArray
public double[] toArray()- Specified by:
toArrayin interfaceDoubleIterable
-
toArray
public double[] toArray(double[] target) - Specified by:
toArrayin interfaceDoubleIterable
-
contains
public boolean contains(double value) - Specified by:
containsin interfaceDoubleIterable
-
containsAll
public boolean containsAll(double... source) - Specified by:
containsAllin interfaceDoubleIterable
-
containsAll
- Specified by:
containsAllin interfaceDoubleIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableObjectDoubleMap<K>
-
put
- Specified by:
putin interfaceMutableObjectDoubleMap<K>
-
putAll
- Specified by:
putAllin interfaceMutableObjectDoubleMap<K>
-
updateValues
- Specified by:
updateValuesin interfaceMutableObjectDoubleMap<K>
-
removeKey
- Specified by:
removeKeyin interfaceMutableObjectDoubleMap<K>
-
removeKeyAtIndex
-
remove
- Specified by:
removein interfaceMutableObjectDoubleMap<K>
-
removeKeyIfAbsent
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectDoubleMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectDoubleMap<K>
-
getAndPut
- Specified by:
getAndPutin interfaceMutableObjectDoubleMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectDoubleMap<K>
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectDoubleMap<K>
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectDoubleMap<K>
-
updateValue
- Specified by:
updateValuein interfaceMutableObjectDoubleMap<K>
-
addToValue
- Specified by:
addToValuein interfaceMutableObjectDoubleMap<K>
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableObjectDoubleMap<K>
-
withKeysValues
public ObjectDoubleHashMapWithHashingStrategy<K> withKeysValues(K key1, double value1, K key2, double value2) -
withKeysValues
public ObjectDoubleHashMapWithHashingStrategy<K> withKeysValues(K key1, double value1, K key2, double value2, K key3, double value3) -
withKeysValues
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableObjectDoubleMap<K>
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableObjectDoubleMap<K>
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableObjectDoubleMap<K>
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableObjectDoubleMap<K>
-
toImmutable
- Specified by:
toImmutablein interfaceObjectDoubleMap<K>
-
get
- Specified by:
getin interfaceObjectDoubleMap<K>
-
getOrThrow
- Specified by:
getOrThrowin interfaceObjectDoubleMap<K>
-
getIfAbsent
- Specified by:
getIfAbsentin interfaceObjectDoubleMap<K>
-
containsKey
- Specified by:
containsKeyin interfaceObjectDoubleMap<K>
-
containsValue
public boolean containsValue(double value) - Specified by:
containsValuein interfaceObjectDoubleMap<K>
-
each
- Specified by:
eachin interfaceDoubleIterable
-
forEachValue
- Specified by:
forEachValuein interfaceObjectDoubleMap<K>
-
forEachKey
- Specified by:
forEachKeyin interfaceObjectDoubleMap<K>
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceObjectDoubleMap<K>
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceObjectDoubleMap<K>- Since:
- 12.0
-
select
- Specified by:
selectin interfaceMutableObjectDoubleMap<K>- Specified by:
selectin interfaceObjectDoubleMap<K>
-
reject
- Specified by:
rejectin interfaceMutableObjectDoubleMap<K>- Specified by:
rejectin interfaceObjectDoubleMap<K>
-
select
- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceMutableObjectDoubleMap<K>
-
reject
- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceMutableObjectDoubleMap<K>
-
detectIfNone
- Specified by:
detectIfNonein interfaceDoubleIterable
-
collect
- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceMutableObjectDoubleMap<K>
-
count
- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceDoubleIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceDoubleIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceDoubleIterable
-
chunk
- Specified by:
chunkin interfaceDoubleIterable
-
sum
public double sum()- Specified by:
sumin interfaceDoubleIterable
-
max
public double max()- Specified by:
maxin interfaceDoubleIterable
-
min
public double min()- Specified by:
minin interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue) - Specified by:
maxIfEmptyin interfaceDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue) - Specified by:
minIfEmptyin interfaceDoubleIterable
-
average
public double average()- Specified by:
averagein interfaceDoubleIterable
-
median
public double median()- Specified by:
medianin interfaceDoubleIterable
-
toList
- Specified by:
toListin interfaceDoubleIterable
-
toSet
- Specified by:
toSetin interfaceDoubleIterable
-
toBag
- Specified by:
toBagin interfaceDoubleIterable
-
asLazy
- Specified by:
asLazyin interfaceDoubleIterable
-
toSortedArray
public double[] toSortedArray()- Specified by:
toSortedArrayin interfaceDoubleIterable
-
toSortedList
- Specified by:
toSortedListin interfaceDoubleIterable
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
keysView
- Specified by:
keysViewin interfaceObjectDoubleMap<K>
-
keyValuesView
- Specified by:
keyValuesViewin interfaceObjectDoubleMap<K>
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableObjectDoubleMap<K>- Specified by:
flipUniqueValuesin interfaceObjectDoubleMap<K>
-
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 interfaceObjectDoubleMap<K>
-
values
- Specified by:
valuesin interfaceObjectDoubleMap<K>
-