Package org.cactoos.scalar
Class AndInThreads
- java.lang.Object
-
- org.cactoos.scalar.AndInThreads
-
public final class AndInThreads extends Object implements Scalar<Boolean>
Logical conjunction, in multiple threads.The usage is same as for
And
This class implements
Scalar
, which throws a checkedException
. This may not be convenient in many cases. To make it more convenient and get rid of the checked exception you can use theUnchecked
decorator. Or you may useIoChecked
to wrap it in an IOException.There is no thread-safety guarantee.
-
-
Constructor Summary
Constructors Constructor Description AndInThreads(Iterable<? extends Scalar<Boolean>> src)
Ctor.AndInThreads(ExecutorService svc, Iterable<? extends Scalar<Boolean>> src)
Ctor.AndInThreads(ExecutorService svc, Func<? super X,Boolean> func, Iterable<? extends X> src)
Ctor.AndInThreads(ExecutorService svc, Func<? super X,Boolean> func, X... src)
Ctor.AndInThreads(ExecutorService svc, Proc<? super X> proc, Iterable<? extends X> src)
Ctor.AndInThreads(ExecutorService svc, Proc<? super X> proc, X... src)
Ctor.AndInThreads(ExecutorService svc, Scalar<Boolean>... src)
Ctor.AndInThreads(Func<? super X,Boolean> func, Iterable<? extends X> src)
Ctor.AndInThreads(Func<? super X,Boolean> func, X... src)
Ctor.AndInThreads(Scalar<Boolean>... src)
Ctor.
-
-
-
Constructor Detail
-
AndInThreads
@SafeVarargs public AndInThreads(Func<? super X,Boolean> func, X... src)
Ctor.- Type Parameters:
X
- Type of items in the iterable- Parameters:
func
- Func to mapsrc
- The iterable
-
AndInThreads
public AndInThreads(Func<? super X,Boolean> func, Iterable<? extends X> src)
Ctor.- Type Parameters:
X
- Type of items in the iterable- Parameters:
func
- Func to mapsrc
- The iterable
-
AndInThreads
@SafeVarargs public AndInThreads(Scalar<Boolean>... src)
Ctor.- Parameters:
src
- The iterable
-
AndInThreads
public AndInThreads(Iterable<? extends Scalar<Boolean>> src)
Ctor.- Parameters:
src
- The iterable
-
AndInThreads
@SafeVarargs public AndInThreads(ExecutorService svc, Proc<? super X> proc, X... src)
Ctor.- Type Parameters:
X
- Type of items in the iterable- Parameters:
svc
- Executable service to run thread inproc
- Proc to mapsrc
- The iterable
-
AndInThreads
@SafeVarargs public AndInThreads(ExecutorService svc, Func<? super X,Boolean> func, X... src)
Ctor.- Type Parameters:
X
- Type of items in the iterable- Parameters:
svc
- Executable service to run thread infunc
- Func to mapsrc
- The iterable
-
AndInThreads
public AndInThreads(ExecutorService svc, Proc<? super X> proc, Iterable<? extends X> src)
Ctor.- Type Parameters:
X
- Type of items in the iterable- Parameters:
svc
- Executable service to run thread inproc
- Proc to usesrc
- The iterable
-
AndInThreads
public AndInThreads(ExecutorService svc, Func<? super X,Boolean> func, Iterable<? extends X> src)
Ctor.- Type Parameters:
X
- Type of items in the iterable- Parameters:
svc
- Executable service to run thread infunc
- Func to mapsrc
- The iterable
-
AndInThreads
@SafeVarargs public AndInThreads(ExecutorService svc, Scalar<Boolean>... src)
Ctor.- Parameters:
svc
- Executable service to run thread insrc
- The iterable
-
AndInThreads
public AndInThreads(ExecutorService svc, Iterable<? extends Scalar<Boolean>> src)
Ctor.- Parameters:
svc
- Executable service to run thread insrc
- The iterable
-
-