Package ch.hslu.exercises.sw11.ex3.fibo
Class FibonacciTask
- All Implemented Interfaces:
Serializable
,Future<Long>
Codevorlage für ein klassisches Beispiel zur Berechnung von Fibonacci Zahlen.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.concurrent.RecursiveTask
exec, getRawResult, setRawResult
Methods inherited from class java.util.concurrent.ForkJoinTask
adapt, adapt, adapt, adaptInterruptible, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, exceptionNow, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollSubmission, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, quietlyJoin, quietlyJoinUninterruptibly, reinitialize, resultNow, setForkJoinTaskTag, state, tryUnfork
-
Constructor Details
-
FibonacciTask
public FibonacciTask(long n) Erzeugt einen Fibonacci Task.- Parameters:
n
- für die Fibonacci Berechnung.
-
-
Method Details
-
compute
- Specified by:
compute
in classRecursiveTask<Long>
-