Class AbstractMutableDoubleValuesMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractDoubleIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableDoubleValuesMap
- All Implemented Interfaces:
DoubleIterable,DoubleValuesMap,MutableDoubleValuesMap,PrimitiveIterable
- Direct Known Subclasses:
ByteDoubleHashMap,CharDoubleHashMap,DoubleDoubleHashMap,FloatDoubleHashMap,IntDoubleHashMap,LongDoubleHashMap,ShortDoubleHashMap
public abstract class AbstractMutableDoubleValuesMap extends AbstractDoubleIterable implements MutableDoubleValuesMap
This file was automatically generated from template file abstractMutablePrimitiveValuesMap.stg.
- Since:
- 6.0.
-
Constructor Summary
Constructors Constructor Description AbstractMutableDoubleValuesMap() -
Method Summary
Modifier and Type Method Description booleanallSatisfy(DoublePredicate predicate)Returns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.booleananySatisfy(DoublePredicate predicate)Returns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.voidappendString(Appendable appendable, String start, String separator, String end)Prints a string representation of this collection onto the givenAppendable.RichIterable<DoubleIterable>chunk(int size)Partitions elements in fixed size chunks.<V> MutableBag<V>collect(DoubleToObjectFunction<? extends V> function)Returns a new collection with the results of applying the specified function on each element of the source collection.booleancontains(double value)Returns true if the value is contained in the DoubleIterable, and false if it is not.booleancontainsAll(DoubleIterable source)Returns true if the all of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not.booleancontainsValue(double value)Returns whether or not this map contains the value.intcount(DoublePredicate predicate)Returns a count of the number of elements in the DoubleIterable that return true for the specified predicate.doubledetectIfNone(DoublePredicate predicate, double value)voideach(DoubleProcedure procedure)A synonym for forEach.voidforEach(DoubleProcedure procedure)Applies the DoubleProcedure to each element in the DoubleIterable.voidforEachValue(DoubleProcedure procedure)Iterates through each value in this map.booleanisEmpty()Returns true if this iterable has zero items.doublemax()doublemin()booleannoneSatisfy(DoublePredicate predicate)Returns true if none of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.booleannotEmpty()The English equivalent of !this.isEmpty()MutableDoubleBagreject(DoublePredicate predicate)Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.MutableDoubleBagselect(DoublePredicate predicate)Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.intsize()Returns the number of items in this iterable.doublesum()double[]toArray()Converts the DoubleIterable to a primitive double array.double[]toArray(double[] target)Converts the DoubleIterable to a primitive double array.Methods inherited from class org.eclipse.collections.impl.primitive.AbstractDoubleIterable
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.DoubleIterable
asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, flatCollect, injectInto, maxIfEmpty, median, medianIfEmpty, minIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.map.primitive.DoubleValuesMap
tap, valuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMap
clear, doubleIteratorMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, makeString, makeString, makeString, toString
-
Constructor Details
-
AbstractMutableDoubleValuesMap
public AbstractMutableDoubleValuesMap()
-
-
Method Details
-
contains
public boolean contains(double value)Description copied from interface:DoubleIterableReturns true if the value is contained in the DoubleIterable, and false if it is not.- Specified by:
containsin interfaceDoubleIterable
-
containsAll
Description copied from interface:DoubleIterableReturns true if the all of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not.- Specified by:
containsAllin interfaceDoubleIterable- Overrides:
containsAllin classAbstractDoubleIterable
-
max
public double max()- Specified by:
maxin interfaceDoubleIterable
-
min
public double min()- Specified by:
minin interfaceDoubleIterable
-
size
public int size()Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()Description copied from interface:PrimitiveIterableReturns true if this iterable has zero items.- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
forEach
Description copied from interface:DoubleIterableApplies the DoubleProcedure to each element in the DoubleIterable.- Specified by:
forEachin interfaceDoubleIterable
-
each
Description copied from interface:DoubleIterableA synonym for forEach.- Specified by:
eachin interfaceDoubleIterable- Since:
- 7.0.
-
appendString
Description copied from interface:PrimitiveIterablePrints a string representation of this collection onto the givenAppendable. Prints the string returned byPrimitiveIterable.makeString(String, String, String).- Specified by:
appendStringin interfacePrimitiveIterable
-
toArray
public double[] toArray()Description copied from interface:DoubleIterableConverts the DoubleIterable to a primitive double array.- Specified by:
toArrayin interfaceDoubleIterable
-
toArray
public double[] toArray(double[] target)Description copied from interface:DoubleIterableConverts the DoubleIterable to a primitive double array. If the collection fits into the provided array it is used to store its elements and is returned from the method, otherwise a new array of the appropriate size is allocated and returned. If the iterable is empty, the target array is returned unchanged.- Specified by:
toArrayin interfaceDoubleIterable
-
select
Description copied from interface:DoubleIterableReturns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleValuesMap- Specified by:
selectin interfaceMutableDoubleValuesMap
-
reject
Description copied from interface:DoubleIterableReturns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleValuesMap- Specified by:
rejectin interfaceMutableDoubleValuesMap
-
collect
Description copied from interface:DoubleIterableReturns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleValuesMap- Specified by:
collectin interfaceMutableDoubleValuesMap
-
detectIfNone
- Specified by:
detectIfNonein interfaceDoubleIterable
-
count
Description copied from interface:DoubleIterableReturns a count of the number of elements in the DoubleIterable that return true for the specified predicate.- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
Description copied from interface:DoubleIterableReturns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
Description copied from interface:DoubleIterableReturns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfyin interfaceDoubleIterable
-
noneSatisfy
Description copied from interface:DoubleIterableReturns true if none of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.- Specified by:
noneSatisfyin interfaceDoubleIterable
-
chunk
Description copied from interface:DoubleIterablePartitions elements in fixed size chunks.- Specified by:
chunkin interfaceDoubleIterable- Parameters:
size- the number of elements per chunk- Returns:
- A
RichIterablecontainingDoubleIterables of sizesize, except the last will be truncated if the elements don't divide evenly.
-
sum
public double sum()- Specified by:
sumin interfaceDoubleIterable
-
containsValue
public boolean containsValue(double value)Description copied from interface:DoubleValuesMapReturns whether or not this map contains the value.- Specified by:
containsValuein interfaceDoubleValuesMap- Parameters:
value- the value to test- Returns:
- if this collection contains the value
-
forEachValue
Description copied from interface:DoubleValuesMapIterates through each value in this map.- Specified by:
forEachValuein interfaceDoubleValuesMap- Parameters:
procedure- the procedure to invoke for each value in this map.
-