public class DefaultLoopInplace<A> extends AbstractUnaryInplaceOp<A> implements LoopInplace<A,A>
LoopInplace
.SpecialOp.Flavor
Constructor and Description |
---|
DefaultLoopInplace() |
Modifier and Type | Method and Description |
---|---|
DefaultLoopInplace<A> |
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.
|
int |
getLoopCount() |
UnaryInplaceOp<A,A> |
getOp() |
void |
setLoopCount(int n) |
void |
setOp(UnaryInplaceOp<A,A> op) |
out, setInput
ops, setEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mutate
in, run, run
candidates, filterArity, op
ops, setEnvironment
initialize
setInput
public UnaryInplaceOp<A,A> getOp()
public void setOp(UnaryInplaceOp<A,A> op)
public int getLoopCount()
getLoopCount
in interface LoopOp<UnaryInplaceOp<A,A>>
Op
is loopedpublic void setLoopCount(int n)
setLoopCount
in interface LoopOp<UnaryInplaceOp<A,A>>
n
- number how often Op
is loopedpublic DefaultLoopInplace<A> 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 UnaryInplaceOnlyOp<A>
getIndependentInstance
in interface UnaryInplaceOp<A,A>
getIndependentInstance
in interface NullaryOp<A>
getIndependentInstance
in interface SpecialOp
getIndependentInstance
in interface UnaryOp<A,A>
getIndependentInstance
in interface Threadable
Copyright © 2014–2022 ImageJ. All rights reserved.