Package org.cactoos.proc
Class RepeatedProc<X>
- java.lang.Object
-
- org.cactoos.proc.RepeatedProc<X>
-
-
Constructor Summary
Constructors Constructor Description RepeatedProc(Proc<? super X> prc, int count)
Ctor.
-
-
-
Constructor Detail
-
RepeatedProc
public RepeatedProc(Proc<? super X> prc, int count)
Ctor.If
count
is equal or less than zeroexec(Object)
will return an exception.- Parameters:
prc
- Proc to repeat.count
- How many times.
-
-