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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static doubleEMPTY_VALUE
-
Constructor Summary
Constructors Constructor Description ObjectDoubleHashMapWithHashingStrategy()Deprecated.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
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap
putPair, tap, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap
injectIntoKeyValue
-
-
-
-
Field Detail
-
EMPTY_VALUE
public static final double EMPTY_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjectDoubleHashMapWithHashingStrategy
@Deprecated public ObjectDoubleHashMapWithHashingStrategy()
Deprecated.Use ObjectDoubleHashMapWithHashingStrategy(HashingStrategy) instead.
-
ObjectDoubleHashMapWithHashingStrategy
public ObjectDoubleHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy)
-
ObjectDoubleHashMapWithHashingStrategy
public ObjectDoubleHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, int initialCapacity)
-
ObjectDoubleHashMapWithHashingStrategy
public ObjectDoubleHashMapWithHashingStrategy(HashingStrategy<? super K> hashingStrategy, ObjectDoubleMap<? extends K> map)
-
-
Method Detail
-
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)
-
toString
public String 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
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
doubleIterator
public MutableDoubleIterator 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
public boolean containsAll(DoubleIterable source)
- Specified by:
containsAllin interfaceDoubleIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableObjectDoubleMap<K>
-
put
public void put(K key, double value)
- Specified by:
putin interfaceMutableObjectDoubleMap<K>
-
putAll
public void putAll(ObjectDoubleMap<? extends K> map)
- Specified by:
putAllin interfaceMutableObjectDoubleMap<K>
-
updateValues
public void updateValues(ObjectDoubleToDoubleFunction<? super K> function)
- Specified by:
updateValuesin interfaceMutableObjectDoubleMap<K>
-
removeKey
public void removeKey(K key)
- Specified by:
removeKeyin interfaceMutableObjectDoubleMap<K>
-
removeKeyAtIndex
public void removeKeyAtIndex(K key, int index)
-
remove
public void remove(Object key)
- Specified by:
removein interfaceMutableObjectDoubleMap<K>
-
removeKeyIfAbsent
public double removeKeyIfAbsent(K key, double value)
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectDoubleMap<K>
-
getIfAbsentPut
public double getIfAbsentPut(K key, double value)
- Specified by:
getIfAbsentPutin interfaceMutableObjectDoubleMap<K>
-
getAndPut
public double getAndPut(K key, double putValue, double defaultValue)
- Specified by:
getAndPutin interfaceMutableObjectDoubleMap<K>
-
getIfAbsentPut
public double getIfAbsentPut(K key, DoubleFunction0 function)
- Specified by:
getIfAbsentPutin interfaceMutableObjectDoubleMap<K>
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(K key, DoubleFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectDoubleMap<K>
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(K key, DoubleFunction<? super K> function)
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectDoubleMap<K>
-
updateValue
public double updateValue(K key, double initialValueIfAbsent, DoubleToDoubleFunction function)
- Specified by:
updateValuein interfaceMutableObjectDoubleMap<K>
-
addToValue
public double addToValue(K key, double toBeAdded)
- Specified by:
addToValuein interfaceMutableObjectDoubleMap<K>
-
withKeyValue
public ObjectDoubleHashMapWithHashingStrategy<K> withKeyValue(K key1, double value1)
- 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
public ObjectDoubleHashMapWithHashingStrategy<K> withKeysValues(K key1, double value1, K key2, double value2, K key3, double value3, K key4, double value4)
-
withoutKey
public ObjectDoubleHashMapWithHashingStrategy<K> withoutKey(K key)
- Specified by:
withoutKeyin interfaceMutableObjectDoubleMap<K>
-
withoutAllKeys
public ObjectDoubleHashMapWithHashingStrategy<K> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeysin interfaceMutableObjectDoubleMap<K>
-
asUnmodifiable
public MutableObjectDoubleMap<K> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableObjectDoubleMap<K>
-
asSynchronized
public MutableObjectDoubleMap<K> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableObjectDoubleMap<K>
-
toImmutable
public ImmutableObjectDoubleMap<K> toImmutable()
- Specified by:
toImmutablein interfaceObjectDoubleMap<K>
-
get
public double get(Object key)
- Specified by:
getin interfaceObjectDoubleMap<K>
-
getOrThrow
public double getOrThrow(Object key)
- Specified by:
getOrThrowin interfaceObjectDoubleMap<K>
-
getIfAbsent
public double getIfAbsent(Object key, double ifAbsent)
- Specified by:
getIfAbsentin interfaceObjectDoubleMap<K>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceObjectDoubleMap<K>
-
containsValue
public boolean containsValue(double value)
- Specified by:
containsValuein interfaceObjectDoubleMap<K>
-
each
public void each(DoubleProcedure procedure)
- Specified by:
eachin interfaceDoubleIterable
-
forEachValue
public void forEachValue(DoubleProcedure procedure)
- Specified by:
forEachValuein interfaceObjectDoubleMap<K>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKeyin interfaceObjectDoubleMap<K>
-
forEachKeyValue
public void forEachKeyValue(ObjectDoubleProcedure<? super K> procedure)
- Specified by:
forEachKeyValuein interfaceObjectDoubleMap<K>
-
select
public ObjectDoubleHashMapWithHashingStrategy<K> select(ObjectDoublePredicate<? super K> predicate)
- Specified by:
selectin interfaceMutableObjectDoubleMap<K>- Specified by:
selectin interfaceObjectDoubleMap<K>
-
reject
public ObjectDoubleHashMapWithHashingStrategy<K> reject(ObjectDoublePredicate<? super K> predicate)
- Specified by:
rejectin interfaceMutableObjectDoubleMap<K>- Specified by:
rejectin interfaceObjectDoubleMap<K>
-
select
public MutableDoubleCollection select(DoublePredicate predicate)
- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceMutableObjectDoubleMap<K>
-
reject
public MutableDoubleCollection reject(DoublePredicate predicate)
- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceMutableObjectDoubleMap<K>
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double ifNone)
- Specified by:
detectIfNonein interfaceDoubleIterable
-
collect
public <V> MutableCollection<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceMutableObjectDoubleMap<K>
-
count
public int count(DoublePredicate predicate)
- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
- Specified by:
allSatisfyin interfaceDoubleIterable
-
noneSatisfy
public boolean noneSatisfy(DoublePredicate predicate)
- Specified by:
noneSatisfyin interfaceDoubleIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- 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
public MutableDoubleList toList()
- Specified by:
toListin interfaceDoubleIterable
-
toSet
public MutableDoubleSet toSet()
- Specified by:
toSetin interfaceDoubleIterable
-
toBag
public MutableDoubleBag toBag()
- Specified by:
toBagin interfaceDoubleIterable
-
asLazy
public LazyDoubleIterable asLazy()
- Specified by:
asLazyin interfaceDoubleIterable
-
toSortedArray
public double[] toSortedArray()
- Specified by:
toSortedArrayin interfaceDoubleIterable
-
toSortedList
public MutableDoubleList toSortedList()
- Specified by:
toSortedListin interfaceDoubleIterable
-
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
-
keysView
public LazyIterable<K> keysView()
- Specified by:
keysViewin interfaceObjectDoubleMap<K>
-
keyValuesView
public RichIterable<ObjectDoublePair<K>> keyValuesView()
- Specified by:
keyValuesViewin interfaceObjectDoubleMap<K>
-
flipUniqueValues
public MutableDoubleObjectMap<K> flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceMutableObjectDoubleMap<K>- Specified by:
flipUniqueValuesin interfaceObjectDoubleMap<K>
-
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 Set<K> keySet()
- Specified by:
keySetin interfaceObjectDoubleMap<K>
-
values
public MutableDoubleCollection values()
- Specified by:
valuesin interfaceObjectDoubleMap<K>
-
-