Package kilim.examples
Class Xorshift.X1
- java.lang.Object
-
- kilim.Continuation
-
- kilim.Generator<java.lang.Long>
-
- kilim.examples.Xorshift.X1
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.Long>,java.util.Iterator<java.lang.Long>,Xorshift.Loop,Fiber.Worker
- Enclosing class:
- Xorshift
public static class Xorshift.X1 extends Generator<java.lang.Long> implements Xorshift.Loop
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class kilim.Continuation
Continuation.FakeTask
-
-
Constructor Summary
Constructors Constructor Description X1()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()the top level entrypoint for the continuation override this method cannot be called directly - use run() instead use Fiber.yield() to yield control cooperatively and return execution to the caller of run()longloop(long num)-
Methods inherited from class kilim.Continuation
ex, execute, reset, run
-
-
-
-
Method Detail
-
execute
public void execute() throws Pausable, java.lang.ExceptionDescription copied from class:Continuationthe top level entrypoint for the continuation override this method cannot be called directly - use run() instead use Fiber.yield() to yield control cooperatively and return execution to the caller of run()- Specified by:
executein interfaceFiber.Worker- Overrides:
executein classContinuation- Throws:
Pausablejava.lang.Exception
-
loop
public long loop(long num)
- Specified by:
loopin interfaceXorshift.Loop
-
-