O
- type of outputpublic interface NullaryFunctionOp<O> extends NullaryOp<O>
NullaryFunctionOp
,
NullaryHybridCF
SpecialOp.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, op
ops, setEnvironment
initialize
O calculate()
default O run(O output)
NullaryOp
The 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()
Threadable
It 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 SpecialOp
getIndependentInstance
in interface Threadable
Copyright © 2014–2022 ImageJ. All rights reserved.