Class RandomRegistry.Runner
java.lang.Object
io.jenetics.util.RandomRegistry.Runner
- Enclosing class:
RandomRegistry
Runs code with specifically bound random generator.
- Since:
- 9.0
- Version:
- 9.0
-
Method Summary
Modifier and TypeMethodDescription<R, X extends Throwable>
Rcall(ScopedValue.CallableOp<? extends R, X> op) Calls a value-returning operation with each scoped random generator.voidRuns an operation with each scoped value in this mapping bound to its value in the current thread.
-
Method Details
-
run
-
call
Calls a value-returning operation with each scoped random generator.- Type Parameters:
R- the type of the result of the operationX- type of the exception thrown by the operation- Parameters:
op- the operation to run- Returns:
- the result
- Throws:
X- ifopcompletes with an exception
-