Package net.imglib2.type.numeric.integer
Class LongType
- java.lang.Object
-
- net.imglib2.type.numeric.complex.AbstractComplexType<T>
-
- net.imglib2.type.numeric.real.AbstractRealType<T>
-
- net.imglib2.type.numeric.integer.AbstractIntegerType<T>
-
- net.imglib2.type.numeric.integer.GenericLongType<LongType>
-
- net.imglib2.type.numeric.integer.LongType
-
- All Implemented Interfaces:
java.lang.Comparable<LongType>
,NativeType<LongType>
,ComplexType<LongType>
,IntegerType<LongType>
,NumericType<LongType>
,RealType<LongType>
,Add<LongType>
,Div<LongType>
,Mul<LongType>
,MulFloatingPoint
,SetOne
,SetZero
,Sub<LongType>
,ValueEquals<LongType>
,Type<LongType>
public class LongType extends GenericLongType<LongType>
TODO- Author:
- Stephan Preibisch, Stephan Saalfeld, Mark Hiner
-
-
Field Summary
-
Fields inherited from class net.imglib2.type.numeric.integer.GenericLongType
dataAccess, img
-
-
Constructor Summary
Constructors Constructor Description LongType()
LongType(long value)
LongType(LongAccess access)
LongType(NativeImg<?,? extends LongAccess> longStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(LongType c)
LongType
copy()
NativeImg<LongType,? extends LongAccess>
createSuitableNativeImg(NativeImgFactory<LongType> storageFactory, long[] dim)
TheNativeType
creates theNativeImg
used for storing image data; based on the given storage strategy and its size.LongType
createVariable()
Creates a newType
variable which can only store one value.LongType
duplicateTypeOnSameNativeImg()
Creates a newNativeType
which stores in the same physical array.long
get()
java.math.BigInteger
getBigInteger()
int
getInteger()
long
getIntegerLong()
double
getMaxValue()
double
getMinValue()
int
hashCode()
void
set(long f)
void
setBigInteger(java.math.BigInteger b)
void
setInteger(int f)
void
setInteger(long f)
-
Methods inherited from class net.imglib2.type.numeric.integer.GenericLongType
add, dec, decIndex, decIndex, div, getBitsPerPixel, getEntitiesPerPixel, getIndex, getLong, getValue, inc, incIndex, incIndex, mul, mul, mul, set, setLong, setOne, setValue, setZero, sub, toString, updateContainer, updateIndex, valueEquals
-
Methods inherited from class net.imglib2.type.numeric.integer.AbstractIntegerType
getMinIncrement, getRealDouble, getRealFloat, setReal, setReal
-
Methods inherited from class net.imglib2.type.numeric.real.AbstractRealType
equals, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setImaginary, setImaginary
-
Methods inherited from class net.imglib2.type.numeric.complex.AbstractComplexType
complexConjugate, setComplexNumber, setComplexNumber
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.type.numeric.ComplexType
complexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginary
-
-
-
-
Constructor Detail
-
LongType
public LongType(NativeImg<?,? extends LongAccess> longStorage)
-
LongType
public LongType(LongAccess access)
-
LongType
public LongType(long value)
-
LongType
public LongType()
-
-
Method Detail
-
createSuitableNativeImg
public NativeImg<LongType,? extends LongAccess> createSuitableNativeImg(NativeImgFactory<LongType> storageFactory, long[] dim)
Description copied from interface:NativeType
TheNativeType
creates theNativeImg
used for storing image data; based on the given storage strategy and its size. It basically only decides here which BasicType it uses (float, int, byte, bit, ...) and how many entities per pixel it needs (e.g. 2 floats per pixel for a complex number). This enables the separation of containers and the basic types.
-
duplicateTypeOnSameNativeImg
public LongType duplicateTypeOnSameNativeImg()
Description copied from interface:NativeType
Creates a newNativeType
which stores in the same physical array. This is only used internally.- Returns:
- a new
NativeType
instance working on the sameNativeImg
-
get
public long get()
-
set
public void set(long f)
-
getInteger
public int getInteger()
-
getIntegerLong
public long getIntegerLong()
-
getBigInteger
public java.math.BigInteger getBigInteger()
-
setInteger
public void setInteger(int f)
-
setInteger
public void setInteger(long f)
-
setBigInteger
public void setBigInteger(java.math.BigInteger b)
-
getMaxValue
public double getMaxValue()
-
getMinValue
public double getMinValue()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classGenericLongType<LongType>
-
compareTo
public int compareTo(LongType c)
- Specified by:
compareTo
in interfacejava.lang.Comparable<LongType>
- Overrides:
compareTo
in classGenericLongType<LongType>
-
createVariable
public LongType createVariable()
Description copied from interface:Type
Creates a newType
variable which can only store one value.- Returns:
- a new
Type
variable
-
-