X
- Type of source itempublic final class IterableAsBooleans<X> extends Object implements Iterable<Boolean>
You can use this class, for example, in order to iterate through
a collection of items, in combination with AllOf
:
new AllOf( new IterableAsBooleans<String>( Arrays.asList("hello", "world"), i -> System.out.println(i) ) ).asValue();
Also, consider a much shorter version with IterableAsBoolean
.
There is no thread-safety guarantee.
IterableAsBoolean
Constructor and Description |
---|
IterableAsBooleans(Iterable<X> src,
Func<X,Boolean> fnc)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Boolean> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
Copyright © 2017 Cactoos. All rights reserved.