Package io.github.repeat
Interface RepeatOperations
-
- All Known Implementing Classes:
RepeatTemplate
public interface RepeatOperationsRepeats RepeatCallbacks a defined amount of times
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T,E extends Throwable>
List<T>repeat(RepeatCallback<T,E> repeatCallback, int times)repats RepeatCallback a defined amount of times and returns the results.
-
-
-
Method Detail
-
repeat
<T,E extends Throwable> List<T> repeat(RepeatCallback<T,E> repeatCallback, int times) throws E extends Throwable
repats RepeatCallback a defined amount of times and returns the results.- Type Parameters:
T- return type of repeatCallbackE- exceptions for repeatCallback- Parameters:
repeatCallback- method to executetimes- how many times to execute repeatCallback- Returns:
- a List of values from RepeatCallback
- Throws:
E- an error if any errors are thrown in RepeatCallbackE extends Throwable
-
-