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,Pow<LongType>,PowFloatingPoint,SetOne,SetZero,Sub<LongType>,ValueEquals<LongType>,Type<LongType>
- Direct Known Subclasses:
VolatileLongType.WrappedLongType
public class LongType extends GenericLongType<LongType>
TODO
-
-
Field Summary
Fields Modifier and Type Field Description private static NativeTypeFactory<LongType,LongAccess>typeFactory-
Fields inherited from class net.imglib2.type.numeric.integer.GenericLongType
dataAccess, i, 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 LongTypecopy()LongTypecreateVariable()Creates a newTypevariable which can only store one value.LongTypeduplicateTypeOnSameNativeImg()Creates a newNativeTypewhich stores in the same physical array.longget()java.math.BigIntegergetBigInteger()intgetInteger()longgetIntegerLong()doublegetMaxValue()doublegetMinValue()NativeTypeFactory<LongType,LongAccess>getNativeTypeFactory()voidset(long f)voidsetBigInteger(java.math.BigInteger b)voidsetInteger(int f)voidsetInteger(long f)voidsetReal(float real)-
Methods inherited from class net.imglib2.type.numeric.integer.GenericLongType
add, compareTo, dec, div, equals, getBitsPerPixel, getEntitiesPerPixel, getLong, getValue, hashCode, inc, index, mul, mul, mul, set, setLong, setOne, setValue, setZero, sub, toString, updateContainer, valueEquals
-
Methods inherited from class net.imglib2.type.numeric.integer.AbstractIntegerType
getMinIncrement, getRealDouble, getRealFloat, setReal
-
Methods inherited from class net.imglib2.type.numeric.real.AbstractRealType
getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, pow, pow, 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
-
Methods inherited from interface net.imglib2.type.NativeType
decIndex, decIndex, getIndex, incIndex, incIndex, updateIndex
-
Methods inherited from interface net.imglib2.type.operators.PowFloatingPoint
pow
-
-
-
-
Field Detail
-
typeFactory
private static final NativeTypeFactory<LongType,LongAccess> typeFactory
-
-
Constructor Detail
-
LongType
public LongType(NativeImg<?,? extends LongAccess> longStorage)
-
LongType
public LongType(LongAccess access)
-
LongType
public LongType(long value)
-
LongType
public LongType()
-
-
Method Detail
-
duplicateTypeOnSameNativeImg
public LongType duplicateTypeOnSameNativeImg()
Description copied from interface:NativeTypeCreates a newNativeTypewhich stores in the same physical array. This is only used internally.- Returns:
- a new
NativeTypeinstance working on the sameNativeImg
-
getNativeTypeFactory
public NativeTypeFactory<LongType,LongAccess> getNativeTypeFactory()
- Specified by:
getNativeTypeFactoryin interfaceNativeType<LongType>- Specified by:
getNativeTypeFactoryin classGenericLongType<LongType>
-
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)
-
setReal
public void setReal(float real)
- Specified by:
setRealin interfaceComplexType<LongType>- Overrides:
setRealin classAbstractIntegerType<LongType>
-
getMaxValue
public double getMaxValue()
-
getMinValue
public double getMinValue()
-
createVariable
public LongType createVariable()
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Returns:
- a new
Typevariable
-
-