public final class AndInThreads extends Object implements Scalar<Boolean>
The usage is same as for And
This class implements Scalar
, which throws a checked
Exception
. This may not be convenient in many cases. To make
it more convenient and get rid of the checked exception you can
use the Unchecked
decorator. Or you may use
IoChecked
to wrap it in an IOException.
There is no thread-safety guarantee.
Constructor and Description |
---|
AndInThreads(ExecutorService svc,
Func<X,Boolean> func,
Iterable<X> src)
Ctor.
|
AndInThreads(ExecutorService svc,
Func<X,Boolean> func,
X... src)
Ctor.
|
AndInThreads(ExecutorService svc,
Iterable<Scalar<Boolean>> src)
Ctor.
|
AndInThreads(ExecutorService svc,
Proc<X> proc,
Iterable<X> src)
Ctor.
|
AndInThreads(ExecutorService svc,
Proc<X> proc,
X... src)
Ctor.
|
AndInThreads(ExecutorService svc,
Scalar<Boolean>... src)
Ctor.
|
AndInThreads(Func<X,Boolean> func,
Iterable<X> src)
Ctor.
|
AndInThreads(Func<X,Boolean> func,
X... src)
Ctor.
|
AndInThreads(Iterable<Scalar<Boolean>> src)
Ctor.
|
AndInThreads(Scalar<Boolean>... src)
Ctor.
|
@SafeVarargs public AndInThreads(Func<X,Boolean> func, X... src)
X
- Type of items in the iterablefunc
- Func to mapsrc
- The iterablepublic AndInThreads(Func<X,Boolean> func, Iterable<X> src)
X
- Type of items in the iterablefunc
- Func to mapsrc
- The iterable@SafeVarargs public AndInThreads(Scalar<Boolean>... src)
src
- The iterablepublic AndInThreads(Iterable<Scalar<Boolean>> src)
src
- The iterable@SafeVarargs public AndInThreads(ExecutorService svc, Proc<X> proc, X... src)
X
- Type of items in the iterablesvc
- Executable service to run thread inproc
- Proc to mapsrc
- The iterable@SafeVarargs public AndInThreads(ExecutorService svc, Func<X,Boolean> func, X... src)
X
- Type of items in the iterablesvc
- Executable service to run thread infunc
- Func to mapsrc
- The iterablepublic AndInThreads(ExecutorService svc, Proc<X> proc, Iterable<X> src)
X
- Type of items in the iterablesvc
- Executable service to run thread inproc
- Proc to usesrc
- The iterablepublic AndInThreads(ExecutorService svc, Func<X,Boolean> func, Iterable<X> src)
X
- Type of items in the iterablesvc
- Executable service to run thread infunc
- Func to mapsrc
- The iterable@SafeVarargs public AndInThreads(ExecutorService svc, Scalar<Boolean>... src)
svc
- Executable service to run thread insrc
- The iterablepublic AndInThreads(ExecutorService svc, Iterable<Scalar<Boolean>> src)
svc
- Executable service to run thread insrc
- The iterableCopyright © 2017–2020 Cactoos. All rights reserved.