DoubleIterable, LazyDoubleIterable, PrimitiveIterablepublic 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, 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, toStringaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reject, select, summaryStatisticspublic CollectDoubleIterable(LazyIterable<T> adapted, DoubleFunction<? super T> function)
public DoubleIterator doubleIterator()
DoubleIterablepublic void forEach(DoubleProcedure procedure)
DoubleIterableforEach in interface DoubleIterableforEach in class AbstractLazyDoubleIterablepublic void each(DoubleProcedure procedure)
DoubleIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyDoubleIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyDoubleIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyDoubleIterablepublic int count(DoublePredicate predicate)
DoubleIterablecount in interface DoubleIterablecount in class AbstractLazyDoubleIterablepublic boolean anySatisfy(DoublePredicate predicate)
DoubleIterableanySatisfy in interface DoubleIterableanySatisfy in class AbstractLazyDoubleIterablepublic boolean allSatisfy(DoublePredicate predicate)
DoubleIterableallSatisfy in interface DoubleIterableallSatisfy in class AbstractLazyDoubleIterablepublic boolean noneSatisfy(DoublePredicate predicate)
DoubleIterablenoneSatisfy in interface DoubleIterablenoneSatisfy in class AbstractLazyDoubleIterablepublic double[] toArray()
DoubleIterabletoArray in interface DoubleIterabletoArray in class AbstractLazyDoubleIterablepublic double[] toSortedArray()
toSortedArray in interface DoubleIterabletoSortedArray in class AbstractLazyDoubleIterablepublic MutableDoubleList toList()
DoubleIterabletoList in interface DoubleIterabletoList in class AbstractLazyDoubleIterablepublic MutableDoubleSet toSet()
DoubleIterabletoSet in interface DoubleIterabletoSet in class AbstractLazyDoubleIterablepublic MutableDoubleBag toBag()
DoubleIterabletoBag in interface DoubleIterabletoBag in class AbstractLazyDoubleIterablepublic boolean containsAll(double... source)
DoubleIterablecontainsAll in interface DoubleIterablecontainsAll in class AbstractLazyDoubleIterablepublic boolean containsAll(DoubleIterable source)
DoubleIterablecontainsAll in interface DoubleIterablecontainsAll in class AbstractLazyDoubleIterableCopyright © 2004–2017. All rights reserved.