O - type of outputpublic interface NullaryHybridCF<O> extends NullaryComputerOp<O>, NullaryFunctionOp<O>, NullaryOutputFactory<O>
NullaryComputerOp
or NullaryFunctionOp.
To populate a preallocated output object, call
NullaryComputerOp.compute(O); to compute a new output object, call
NullaryFunctionOp.calculate(). To do any of these things as
appropriate, call run(Object).
SpecialOp.Flavor| Modifier and Type | Method and Description |
|---|---|
default O |
calculate()
Calculates the output value.
|
default NullaryHybridCF<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.
|
computesetOutputcandidates, filterArity, opops, setEnvironmentinitializecreateOutputdefault O calculate()
NullaryFunctionOpcalculate in interface NullaryFunctionOp<O>default O run(O output)
NullaryOpThe exact behavior depends on the type of special op.
run in interface NullaryComputerOp<O>run in interface NullaryFunctionOp<O>run in interface NullaryOp<O>output - reference where the operation's result will be storedNullaryComputerOp.run(Object),
NullaryFunctionOp.run(Object),
run(Object)default void run()
default NullaryHybridCF<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 NullaryComputerOp<O>getIndependentInstance in interface NullaryFunctionOp<O>getIndependentInstance in interface NullaryOp<O>getIndependentInstance in interface SpecialOpgetIndependentInstance in interface ThreadableCopyright © 2014–2022 ImageJ. All rights reserved.