Package net.imglib2.type.volatiles
Class AbstractVolatileNumericType<N extends NumericType<N>,T extends AbstractVolatileNumericType<N,T>>
java.lang.Object
net.imglib2.Volatile<N>
net.imglib2.type.volatiles.AbstractVolatileNumericType<N,T>
- Type Parameters:
N
- wrappedNumericType
.T
- type of derived concrete class.
- All Implemented Interfaces:
NumericType<T>
,Add<T>
,Div<T>
,Mul<T>
,MulFloatingPoint
,SetOne
,SetZero
,Sub<T>
,ValueEquals<T>
,Type<T>
- Direct Known Subclasses:
VolatileNumericType
public abstract class AbstractVolatileNumericType<N extends NumericType<N>,T extends AbstractVolatileNumericType<N,T>>
extends Volatile<N>
implements NumericType<T>
Abstract base class for
VolatileNumericType
s that wrap a
NumericType
that is either VALID or INVALID.- Author:
- Stephan Saalfeld
-
Constructor Details
-
AbstractVolatileNumericType
-
AbstractVolatileNumericType
-
-
Method Details
-
set
Description copied from interface:Type
Sets the value of anotherType
.- Specified by:
set
in interfaceType<N extends NumericType<N>>
- Parameters:
c
- the new value
-
add
- Specified by:
add
in interfaceAdd<N extends NumericType<N>>
-
sub
- Specified by:
sub
in interfaceSub<N extends NumericType<N>>
-
mul
- Specified by:
mul
in interfaceMul<N extends NumericType<N>>
-
div
- Specified by:
div
in interfaceDiv<N extends NumericType<N>>
-
setZero
public void setZero() -
setOne
public void setOne() -
mul
public void mul(float c) - Specified by:
mul
in interfaceMulFloatingPoint
-
mul
public void mul(double c) - Specified by:
mul
in interfaceMulFloatingPoint
-
valueEquals
- Specified by:
valueEquals
in interfaceValueEquals<N extends NumericType<N>>
-