public static class NullaryNumericTypeMath.Zero<T extends NumericType<T>> extends AbstractNullaryComputerOp<T> implements Ops.Math.Zero
SpecialOp.Flavor
NAME
Constructor and Description |
---|
Zero() |
Modifier and Type | Method and Description |
---|---|
void |
compute(T output)
Computes the output value.
|
NullaryNumericTypeMath.Zero<T> |
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.
|
out, setOutput
ops, setEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ops, setEnvironment
run, run
candidates, filterArity, op
initialize
public void compute(T output)
NullaryComputerOp
compute
in interface NullaryComputerOp<T extends NumericType<T>>
output
- Object where the computation's result will be stored, which
must be non-nullpublic NullaryNumericTypeMath.Zero<T> 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 NullaryComputerOp<T extends NumericType<T>>
getIndependentInstance
in interface NullaryOp<T extends NumericType<T>>
getIndependentInstance
in interface SpecialOp
getIndependentInstance
in interface Threadable
Copyright © 2014–2022 ImageJ. All rights reserved.