O - type of outputpublic interface NullaryComputerOp<O> extends NullaryOp<O>, OutputMutable<O>
NullaryFunctionOp,
NullaryHybridCFSpecialOp.Flavor| Modifier and Type | Method and Description |
|---|---|
void |
compute(O output)
Computes the output value.
|
default NullaryComputerOp<O> |
getIndependentInstance()
Gets a reference to an instance of this object which can be used
simultaneously from a second thread while this instance is being used from
"its" thread.
|
default void |
run() |
default O |
run(O output)
Executes the operation in a type-safe but flexible way.
|
candidates, filterArity, opops, setEnvironmentinitializesetOutputvoid compute(O output)
output - Object where the computation's result will be stored, which
must be non-nulldefault O run(O output)
NullaryOpThe exact behavior depends on the type of special op.
run in interface NullaryOp<O>output - reference where the operation's result will be storedrun(Object),
NullaryFunctionOp.run(Object),
NullaryHybridCF.run(Object)default void run()
default NullaryComputerOp<O> getIndependentInstance()
ThreadableIt is expected that subclasses which override this method will narrow the return type appropriately. We do not enforce this at compile time via recursive generics due to their complexity: they introduce a host of typing difficulties.
getIndependentInstance in interface NullaryOp<O>getIndependentInstance in interface SpecialOpgetIndependentInstance in interface ThreadableCopyright © 2014–2022 ImageJ. All rights reserved.