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, setInputops, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmutatein, run, runcandidates, filterArity, opops, setEnvironmentinitializesetInputpublic 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()
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 UnaryInplaceOnlyOp<A>getIndependentInstance in interface UnaryInplaceOp<A,A>getIndependentInstance in interface NullaryOp<A>getIndependentInstance in interface SpecialOpgetIndependentInstance in interface UnaryOp<A,A>getIndependentInstance in interface ThreadableCopyright © 2014–2022 ImageJ. All rights reserved.