BooleanIterable
, LazyBooleanIterable
, PrimitiveIterable
public class TapBooleanIterable extends AbstractLazyBooleanIterable
Modifier and Type | Class | Description |
---|---|---|
static class |
TapBooleanIterable.TapBooleanIterator |
Constructor | Description |
---|---|
TapBooleanIterable(BooleanIterable delegate,
BooleanProcedure procedure) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
allSatisfy(BooleanPredicate predicate) |
Returns true if all of the elements in the BooleanIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(BooleanPredicate predicate) |
Returns true if any of the elements in the BooleanIterable return true for the
specified predicate, otherwise returns false.
|
BooleanIterator |
booleanIterator() |
Returns a primitive iterator that can be used to iterate over the BooleanIterable in an
imperative style.
|
boolean |
detectIfNone(BooleanPredicate predicate,
boolean ifNone) |
|
void |
each(BooleanProcedure procedure) |
A synonym for forEach.
|
boolean |
noneSatisfy(BooleanPredicate predicate) |
Returns true if none of the elements in the BooleanIterable return true for the
specified predicate, otherwise returns false.
|
appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, flatCollect, forEach, injectInto, isEmpty, makeString, makeString, makeString, notEmpty, reject, select, size, tap, toArray, toBag, toList, toSet, toString
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, reduce, reduceIfEmpty, reject, select
public TapBooleanIterable(BooleanIterable delegate, BooleanProcedure procedure)
public void each(BooleanProcedure procedure)
BooleanIterable
public boolean anySatisfy(BooleanPredicate predicate)
BooleanIterable
anySatisfy
in interface BooleanIterable
anySatisfy
in class AbstractLazyBooleanIterable
public boolean allSatisfy(BooleanPredicate predicate)
BooleanIterable
allSatisfy
in interface BooleanIterable
allSatisfy
in class AbstractLazyBooleanIterable
public boolean noneSatisfy(BooleanPredicate predicate)
BooleanIterable
noneSatisfy
in interface BooleanIterable
noneSatisfy
in class AbstractLazyBooleanIterable
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
detectIfNone
in interface BooleanIterable
detectIfNone
in class AbstractLazyBooleanIterable
public BooleanIterator booleanIterator()
BooleanIterable
Copyright © 2004–2019. All rights reserved.