Package org.cactoos.func
Class Repeated<X,Y>
- java.lang.Object
-
- org.cactoos.func.Repeated<X,Y>
-
-
Constructor Detail
-
Repeated
public Repeated(Func<? super X,? extends Y> fnc, int max)
Ctor.If
max
is equal or less than zeroapply(Object)
will return an exception.- Parameters:
fnc
- Func originalmax
- How many times
-
-