O - type of outputpublic interface NullaryFunctionOp<O> extends NullaryOp<O>
NullaryFunctionOp,
NullaryHybridCFSpecialOp.Flavor| Modifier and Type | Method and Description |
|---|---|
O |
calculate()
Calculates the output value.
|
default NullaryFunctionOp<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 O |
run(O output)
Executes the operation in a type-safe but flexible way.
|
candidates, filterArity, opops, setEnvironmentinitializeO calculate()
default 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 storedNullaryComputerOp.run(Object),
run(Object),
NullaryHybridCF.run(Object)default NullaryFunctionOp<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.