LazyLongIterable
, LongIterable
, PrimitiveIterable
public class TapLongIterable extends AbstractLazyLongIterable
Modifier and Type | Class | Description |
---|---|---|
static class |
TapLongIterable.TapLongIterator |
Constructor | Description |
---|---|
TapLongIterable(LongIterable delegate,
LongProcedure procedure) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
allSatisfy(LongPredicate predicate) |
Returns true if all of the elements in the LongIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(LongPredicate predicate) |
Returns true if any of the elements in the LongIterable return true for the
specified predicate, otherwise returns false.
|
long |
detectIfNone(LongPredicate predicate,
long ifNone) |
|
void |
each(LongProcedure procedure) |
A synonym for forEach.
|
LongIterator |
longIterator() |
Returns a primitive iterator that can be used to iterate over the LongIterable in an
imperative style.
|
boolean |
noneSatisfy(LongPredicate predicate) |
Returns true if none of the elements in the LongIterable return true for the
specified predicate, otherwise returns false.
|
appendString, appendString, appendString, asLazy, average, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, flatCollect, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, notEmpty, reject, select, size, sum, tap, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics
public TapLongIterable(LongIterable delegate, LongProcedure procedure)
public void each(LongProcedure procedure)
LongIterable
public boolean anySatisfy(LongPredicate predicate)
LongIterable
anySatisfy
in interface LongIterable
anySatisfy
in class AbstractLazyLongIterable
public boolean allSatisfy(LongPredicate predicate)
LongIterable
allSatisfy
in interface LongIterable
allSatisfy
in class AbstractLazyLongIterable
public boolean noneSatisfy(LongPredicate predicate)
LongIterable
noneSatisfy
in interface LongIterable
noneSatisfy
in class AbstractLazyLongIterable
public long detectIfNone(LongPredicate predicate, long ifNone)
detectIfNone
in interface LongIterable
detectIfNone
in class AbstractLazyLongIterable
public LongIterator longIterator()
LongIterable
Copyright © 2004–2019. All rights reserved.