I - type of inputO - type of outputpublic interface UnaryHybridCFI<I,O extends I> extends UnaryHybridCF<I,O>, UnaryHybridCI<I,O>
UnaryComputerOp,
UnaryFunctionOp or UnaryInplaceOp.
To populate a preallocated output object, call
UnaryComputerOp.compute(I, O); to compute a new output object, call
UnaryFunctionOp.calculate(I); to mutate an object inplace, call
UnaryInplaceOp.mutate(O). To do any of these things as appropriate, call
run(Object, Object).
UnaryHybridCF,
UnaryHybridCISpecialOp.Flavor| Modifier and Type | Method and Description |
|---|---|
default UnaryHybridCFI<I,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(I input,
O output)
Executes the operation in a type-safe but flexible way.
|
default O |
run(O output)
Executes the operation in a type-safe but flexible way.
|
calculate, calculate, createOutputcreateOutputmutatecompute, computesetOutputincandidates, filterArity, opops, setEnvironmentinitializesetInputdefault O run(I input, O output)
UnaryOpThe exact behavior depends on the type of special op.
run in interface UnaryComputerOp<I,O extends I>run in interface UnaryFunctionOp<I,O extends I>run in interface UnaryHybridCF<I,O extends I>run in interface UnaryHybridCI<I,O extends I>run in interface UnaryInplaceOp<I,O extends I>run in interface UnaryOp<I,O extends I>input - argument to the operationoutput - reference where the operation's result will be storedUnaryComputerOp.run(Object, Object),
UnaryFunctionOp.run(Object, Object),
UnaryInplaceOp.run(Object, Object),
UnaryHybridCF.run(Object, Object)default O run(O output)
NullaryOpThe exact behavior depends on the type of special op.
run in interface NullaryComputerOp<O extends I>run in interface NullaryFunctionOp<O extends I>run in interface NullaryHybridCF<O extends I>run in interface NullaryOp<O extends I>run in interface UnaryHybridCI<I,O extends I>run in interface UnaryInplaceOp<I,O extends I>output - reference where the operation's result will be storedNullaryComputerOp.run(Object),
NullaryFunctionOp.run(Object),
NullaryHybridCF.run(Object)default void run()
run in interface NullaryComputerOp<O extends I>run in interface NullaryHybridCF<O extends I>run in interface NullaryOp<O extends I>run in interface Runnablerun in interface UnaryComputerOp<I,O extends I>run in interface UnaryHybridCF<I,O extends I>run in interface UnaryHybridCI<I,O extends I>run in interface UnaryOp<I,O extends I>default UnaryHybridCFI<I,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 extends I>getIndependentInstance in interface NullaryFunctionOp<O extends I>getIndependentInstance in interface NullaryHybridCF<O extends I>getIndependentInstance in interface NullaryOp<O extends I>getIndependentInstance in interface SpecialOpgetIndependentInstance in interface ThreadablegetIndependentInstance in interface UnaryComputerOp<I,O extends I>getIndependentInstance in interface UnaryFunctionOp<I,O extends I>getIndependentInstance in interface UnaryHybridCF<I,O extends I>getIndependentInstance in interface UnaryHybridCI<I,O extends I>getIndependentInstance in interface UnaryInplaceOp<I,O extends I>getIndependentInstance in interface UnaryOp<I,O extends I>Copyright © 2014–2022 ImageJ. All rights reserved.