I
- type of inputO
- type of outputpublic interface UnaryInplaceOp<I,O extends I> extends UnaryOp<I,O>
Note that the <I>
and <O>
type parameters are kept distinct
for special hybrid ops, which may allow inplace mutation without
requiring it; see e.g. UnaryHybridCI
.
UnaryComputerOp
,
UnaryFunctionOp
SpecialOp.Flavor
Modifier and Type | Method and Description |
---|---|
default UnaryInplaceOp<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 I |
in() |
void |
mutate(O arg)
Mutates the given input argument in-place.
|
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.
|
candidates, filterArity, op
ops, setEnvironment
initialize
setInput
void mutate(O arg)
arg
- of the UnaryInplaceOp
default O run(I input, O output)
UnaryOp
The exact behavior depends on the type of special op.
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)
,
run(Object, Object)
,
UnaryHybridCF.run(Object, Object)
default O run(O output)
NullaryOp
The exact behavior depends on the type of special op.
run
in interface NullaryOp<O extends I>
output
- reference where the operation's result will be storedNullaryComputerOp.run(Object)
,
NullaryFunctionOp.run(Object)
,
NullaryHybridCF.run(Object)
default I in()
in
in interface UnaryInput<I>
default UnaryInplaceOp<I,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 extends I>
getIndependentInstance
in interface SpecialOp
getIndependentInstance
in interface Threadable
getIndependentInstance
in interface UnaryOp<I,O extends I>
Copyright © 2014–2022 ImageJ. All rights reserved.