public final class And extends Object implements Scalar<Boolean>
This class can be effectively used to iterate through
a collection, just like
Stream.forEach(java.util.function.Consumer)
works:
new And( new IterableOf("Mary", "John", "William", "Napkin"), name -> System.out.printf("The name: %s\n", name) ).value();
There is no thread-safety guarantee.
Scalar.NoNulls<T>
Constructor and Description |
---|
And(Func<X,Boolean> func,
X... src)
Ctor.
|
And(Iterable<Scalar<Boolean>> src)
Ctor.
|
And(Iterable<X> src,
Func<X,Boolean> func)
Ctor.
|
And(Iterable<X> src,
Proc<X> proc)
Ctor.
|
And(Proc<X> proc,
X... src)
Ctor.
|
And(Scalar<Boolean>... src)
Ctor.
|
@SafeVarargs public And(Proc<X> proc, X... src)
X
- Type of items in the iterableproc
- Proc to mapsrc
- The iterable@SafeVarargs public And(Func<X,Boolean> func, X... src)
X
- Type of items in the iterablefunc
- Func to mapsrc
- The iterablepublic And(Iterable<X> src, Proc<X> proc)
X
- Type of items in the iterablesrc
- The iterableproc
- Proc to usepublic And(Iterable<X> src, Func<X,Boolean> func)
X
- Type of items in the iterablesrc
- The iterablefunc
- Func to map@SafeVarargs public And(Scalar<Boolean>... src)
src
- The iterableCopyright © 2017 Cactoos. All rights reserved.