DoubleIterable
, LazyDoubleIterable
, PrimitiveIterable
public class CollectDoubleIterable<T> extends AbstractLazyDoubleIterable
Constructor | Description |
---|---|
CollectDoubleIterable(LazyIterable<T> adapted,
DoubleFunction<? super T> function) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
allSatisfy(DoublePredicate predicate) |
Returns true if all of the elements in the DoubleIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(DoublePredicate predicate) |
Returns true if any of the elements in the DoubleIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
containsAll(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.
|
boolean |
containsAll(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.
|
int |
count(DoublePredicate predicate) |
Returns a count of the number of elements in the DoubleIterable that return true for the
specified predicate.
|
DoubleIterator |
doubleIterator() |
Returns a primitive iterator that can be used to iterate over the DoubleIterable in an
imperative style.
|
void |
each(DoubleProcedure procedure) |
A synonym for forEach.
|
void |
forEach(DoubleProcedure procedure) |
Applies the DoubleProcedure to each element in the DoubleIterable.
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
boolean |
noneSatisfy(DoublePredicate predicate) |
Returns true if none of the elements in the DoubleIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
int |
size() |
Returns the number of items in this iterable.
|
double[] |
toArray() |
Converts the DoubleIterable to a primitive double array.
|
MutableDoubleBag |
toBag() |
Converts the DoubleIterable to a new MutableDoubleBag.
|
MutableDoubleList |
toList() |
Converts the DoubleIterable to a new MutableDoubleList.
|
MutableDoubleSet |
toSet() |
Converts the DoubleIterable to a new MutableDoubleSet.
|
double[] |
toSortedArray() |
appendString, appendString, appendString, asLazy, average, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, flatCollect, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, tap, toSortedList, toString
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics
public CollectDoubleIterable(LazyIterable<T> adapted, DoubleFunction<? super T> function)
public DoubleIterator doubleIterator()
DoubleIterable
public void forEach(DoubleProcedure procedure)
DoubleIterable
forEach
in interface DoubleIterable
forEach
in class AbstractLazyDoubleIterable
public void each(DoubleProcedure procedure)
DoubleIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyDoubleIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyDoubleIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyDoubleIterable
public int count(DoublePredicate predicate)
DoubleIterable
count
in interface DoubleIterable
count
in class AbstractLazyDoubleIterable
public boolean anySatisfy(DoublePredicate predicate)
DoubleIterable
anySatisfy
in interface DoubleIterable
anySatisfy
in class AbstractLazyDoubleIterable
public boolean allSatisfy(DoublePredicate predicate)
DoubleIterable
allSatisfy
in interface DoubleIterable
allSatisfy
in class AbstractLazyDoubleIterable
public boolean noneSatisfy(DoublePredicate predicate)
DoubleIterable
noneSatisfy
in interface DoubleIterable
noneSatisfy
in class AbstractLazyDoubleIterable
public double[] toArray()
DoubleIterable
toArray
in interface DoubleIterable
toArray
in class AbstractLazyDoubleIterable
public double[] toSortedArray()
toSortedArray
in interface DoubleIterable
toSortedArray
in class AbstractLazyDoubleIterable
public MutableDoubleList toList()
DoubleIterable
toList
in interface DoubleIterable
toList
in class AbstractLazyDoubleIterable
public MutableDoubleSet toSet()
DoubleIterable
toSet
in interface DoubleIterable
toSet
in class AbstractLazyDoubleIterable
public MutableDoubleBag toBag()
DoubleIterable
toBag
in interface DoubleIterable
toBag
in class AbstractLazyDoubleIterable
public boolean containsAll(double... source)
DoubleIterable
containsAll
in interface DoubleIterable
containsAll
in class AbstractLazyDoubleIterable
public boolean containsAll(DoubleIterable source)
DoubleIterable
containsAll
in interface DoubleIterable
containsAll
in class AbstractLazyDoubleIterable
Copyright © 2004–2019. All rights reserved.