O
- type of outputpublic interface NullaryComputerOp<O> extends NullaryOp<O>, OutputMutable<O>
NullaryFunctionOp
,
NullaryHybridCF
SpecialOp.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, op
ops, setEnvironment
initialize
setOutput
void compute(O output)
output
- Object where the computation's result will be stored, which
must be non-nulldefault 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 storedrun(Object)
,
NullaryFunctionOp.run(Object)
,
NullaryHybridCF.run(Object)
default void run()
default NullaryComputerOp<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.