Class LazyDoubleIterableAdapter
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable
org.eclipse.collections.impl.lazy.primitive.LazyDoubleIterableAdapter
- All Implemented Interfaces:
DoubleIterable,LazyDoubleIterable,PrimitiveIterable
public class LazyDoubleIterableAdapter extends AbstractLazyDoubleIterable
This file was automatically generated from template file lazyPrimitiveIterableAdapter.stg.
- Since:
- 3.0
-
Constructor Summary
Constructors Constructor Description LazyDoubleIterableAdapter(DoubleIterable delegate) -
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)Prints a string representation of this collection onto the givenAppendable.voidappendString(Appendable appendable, String separator)Prints a string representation of this collection onto the givenAppendable.voidappendString(Appendable appendable, String start, String separator, String end)Prints a string representation of this collection onto the givenAppendable.doubleaverage()booleancontains(double value)Returns true if the value is contained in the DoubleIterable, and false if it is not.booleancontainsAll(double... source)Returns true if the all of the values specified in the source array are contained in the DoubleIterable, and false if they are 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.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 ifNone)DoubleIteratordoubleIterator()Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style.voideach(DoubleProcedure procedure)A synonym for forEach.<T> TinjectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T,? extends T> function)booleanisEmpty()Returns true if this iterable has zero items.StringmakeString()Returns a string representation of this collection by delegating toPrimitiveIterable.makeString(String)and defaulting the separator parameter to the characters", "(comma and space).StringmakeString(String separator)Returns a string representation of this collection by delegating toPrimitiveIterable.makeString(String, String, String)and defaulting the start and end parameters to""(the empty String).StringmakeString(String start, String separator, String end)Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.doublemax()doublemaxIfEmpty(double defaultValue)doublemedian()doublemin()doubleminIfEmpty(double defaultValue)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()intsize()Returns the number of items in this iterable.doublesum()double[]toArray()Converts the DoubleIterable to a primitive double array.MutableDoubleBagtoBag()Converts the DoubleIterable to a new MutableDoubleBag.MutableDoubleListtoList()Converts the DoubleIterable to a new MutableDoubleList.MutableDoubleSettoSet()Converts the DoubleIterable to a new MutableDoubleSet.double[]toSortedArray()MutableDoubleListtoSortedList()StringtoString()Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable
asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, reject, select, tapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.DoubleIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray
-
Constructor Details
-
Method Details
-
doubleIterator
Description copied from interface:DoubleIterableReturns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style. -
each
Description copied from interface:DoubleIterableA synonym for forEach.- Since:
- 7.0.
-
size
public int size()Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable- Overrides:
sizein classAbstractLazyDoubleIterable
-
isEmpty
public boolean isEmpty()Description copied from interface:PrimitiveIterableReturns true if this iterable has zero items.- Specified by:
isEmptyin interfacePrimitiveIterable- Overrides:
isEmptyin classAbstractLazyDoubleIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable- Overrides:
notEmptyin classAbstractLazyDoubleIterable
-
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- Overrides:
countin classAbstractLazyDoubleIterable
-
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- Overrides:
anySatisfyin classAbstractLazyDoubleIterable
-
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- Overrides:
allSatisfyin classAbstractLazyDoubleIterable
-
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- Overrides:
noneSatisfyin classAbstractLazyDoubleIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceDoubleIterable- Overrides:
detectIfNonein classAbstractLazyDoubleIterable
-
sum
public double sum()- Specified by:
sumin interfaceDoubleIterable- Overrides:
sumin classAbstractLazyDoubleIterable
-
max
public double max()- Specified by:
maxin interfaceDoubleIterable- Overrides:
maxin classAbstractLazyDoubleIterable
-
min
public double min()- Specified by:
minin interfaceDoubleIterable- Overrides:
minin classAbstractLazyDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue)- Specified by:
minIfEmptyin interfaceDoubleIterable- Overrides:
minIfEmptyin classAbstractLazyDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue)- Specified by:
maxIfEmptyin interfaceDoubleIterable- Overrides:
maxIfEmptyin classAbstractLazyDoubleIterable
-
average
public double average()- Specified by:
averagein interfaceDoubleIterable- Overrides:
averagein classAbstractLazyDoubleIterable
-
median
public double median()- Specified by:
medianin interfaceDoubleIterable- Overrides:
medianin classAbstractLazyDoubleIterable
-
toSortedArray
public double[] toSortedArray()- Specified by:
toSortedArrayin interfaceDoubleIterable- Overrides:
toSortedArrayin classAbstractLazyDoubleIterable
-
toSortedList
- Specified by:
toSortedListin interfaceDoubleIterable- Overrides:
toSortedListin classAbstractLazyDoubleIterable
-
toArray
public double[] toArray()Description copied from interface:DoubleIterableConverts the DoubleIterable to a primitive double array.- Specified by:
toArrayin interfaceDoubleIterable- Overrides:
toArrayin classAbstractLazyDoubleIterable
-
toString
Description copied from interface:PrimitiveIterableReturns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Assert.assertEquals("[]", IntLists.mutable.empty().toString()); Assert.assertEquals("[1]", IntLists.mutable.with(1).toString()); Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractLazyDoubleIterable- Returns:
- a string representation of this PrimitiveIterable
- See Also:
AbstractCollection.toString()
-
makeString
Description copied from interface:PrimitiveIterableReturns a string representation of this collection by delegating toPrimitiveIterable.makeString(String)and defaulting the separator parameter to the characters", "(comma and space).- Specified by:
makeStringin interfacePrimitiveIterable- Overrides:
makeStringin classAbstractLazyDoubleIterable- Returns:
- a string representation of this collection.
-
makeString
Description copied from interface:PrimitiveIterableReturns a string representation of this collection by delegating toPrimitiveIterable.makeString(String, String, String)and defaulting the start and end parameters to""(the empty String).- Specified by:
makeStringin interfacePrimitiveIterable- Overrides:
makeStringin classAbstractLazyDoubleIterable- Returns:
- a string representation of this collection.
-
makeString
Description copied from interface:PrimitiveIterableReturns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.- Specified by:
makeStringin interfacePrimitiveIterable- Overrides:
makeStringin classAbstractLazyDoubleIterable- Returns:
- a string representation of this collection.
-
appendString
Description copied from interface:PrimitiveIterablePrints a string representation of this collection onto the givenAppendable. Prints the string returned byPrimitiveIterable.makeString().- Specified by:
appendStringin interfacePrimitiveIterable- Overrides:
appendStringin classAbstractLazyDoubleIterable
-
appendString
Description copied from interface:PrimitiveIterablePrints a string representation of this collection onto the givenAppendable. Prints the string returned byPrimitiveIterable.makeString(String).- Specified by:
appendStringin interfacePrimitiveIterable- Overrides:
appendStringin classAbstractLazyDoubleIterable
-
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- Overrides:
appendStringin classAbstractLazyDoubleIterable
-
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- Overrides:
containsin classAbstractLazyDoubleIterable
-
containsAll
public boolean containsAll(double... source)Description copied from interface:DoubleIterableReturns true if the all of the values specified in the source array are contained in the DoubleIterable, and false if they are not.- Specified by:
containsAllin interfaceDoubleIterable- Overrides:
containsAllin classAbstractLazyDoubleIterable
-
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 classAbstractLazyDoubleIterable
-
toList
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleList.- Specified by:
toListin interfaceDoubleIterable- Overrides:
toListin classAbstractLazyDoubleIterable
-
toSet
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleSet.- Specified by:
toSetin interfaceDoubleIterable- Overrides:
toSetin classAbstractLazyDoubleIterable
-
toBag
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleBag.- Specified by:
toBagin interfaceDoubleIterable- Overrides:
toBagin classAbstractLazyDoubleIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceDoubleIterable- Overrides:
injectIntoin classAbstractLazyDoubleIterable
-