Package open.java.toolkit.threading
Class Parallel
- java.lang.Object
-
- open.java.toolkit.threading.Parallel
-
public class Parallel extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceParallel.Operation<T>
-
Constructor Summary
Constructors Constructor Description Parallel()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> voidforEach(T[] elements, Parallel.Operation<T> operation)Performs a specific foreach loop over an array.
-
-
-
Method Detail
-
forEach
public static <T> void forEach(T[] elements, Parallel.Operation<T> operation)Performs a specific foreach loop over an array.- Parameters:
elements- The input array to loop over.operation- The operation to perform on each element of the array.
-
-