Package net.imglib2.type.numeric.integer
Class UnsignedIntType
- 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.GenericIntType<UnsignedIntType>
-
- net.imglib2.type.numeric.integer.UnsignedIntType
-
- All Implemented Interfaces:
java.lang.Comparable<UnsignedIntType>,NativeType<UnsignedIntType>,ComplexType<UnsignedIntType>,IntegerType<UnsignedIntType>,NumericType<UnsignedIntType>,RealType<UnsignedIntType>,Add<UnsignedIntType>,Div<UnsignedIntType>,Mul<UnsignedIntType>,MulFloatingPoint,Pow<UnsignedIntType>,PowFloatingPoint,SetOne,SetZero,Sub<UnsignedIntType>,ValueEquals<UnsignedIntType>,Type<UnsignedIntType>
- Direct Known Subclasses:
VolatileUnsignedIntType.WrappedUnsignedIntType
public class UnsignedIntType extends GenericIntType<UnsignedIntType>
TODO
-
-
Field Summary
Fields Modifier and Type Field Description private static NativeTypeFactory<UnsignedIntType,IntAccess>typeFactory-
Fields inherited from class net.imglib2.type.numeric.integer.GenericIntType
dataAccess, i, img
-
-
Constructor Summary
Constructors Constructor Description UnsignedIntType()UnsignedIntType(long value)UnsignedIntType(IntAccess access)UnsignedIntType(NativeImg<?,? extends IntAccess> img)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(UnsignedIntType c)intcompareTo(UnsignedIntType other)UnsignedIntTypecopy()UnsignedIntTypecreateVariable()Creates a newTypevariable which can only store one value.voiddec()voiddiv(UnsignedIntType c)UnsignedIntTypeduplicateTypeOnSameNativeImg()Creates a newNativeTypewhich stores in the same physical array.longget()java.math.BigIntegergetBigInteger()static intgetCodedSignedInt(long unsignedInt)static intgetCodedSignedIntChecked(long unsignedInt)intgetInteger()longgetIntegerLong()doublegetMaxValue()doublegetMinValue()NativeTypeFactory<UnsignedIntType,IntAccess>getNativeTypeFactory()static longgetUnsignedInt(int signedInt)voidinc()voidmul(double c)voidmul(float c)voidmul(UnsignedIntType c)voidset(long f)voidsetBigInteger(java.math.BigInteger b)voidsetInteger(int f)voidsetInteger(long f)voidsetOne()voidsetReal(float real)voidsetZero()voidsub(UnsignedIntType c)java.lang.StringtoString()-
Methods inherited from class net.imglib2.type.numeric.integer.GenericIntType
equals, getBitsPerPixel, getEntitiesPerPixel, getInt, getValue, hashCode, index, pow, pow, set, setInt, setValue, 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, 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
-
-
-
-
Field Detail
-
typeFactory
private static final NativeTypeFactory<UnsignedIntType,IntAccess> typeFactory
-
-
Method Detail
-
getCodedSignedIntChecked
public static int getCodedSignedIntChecked(long unsignedInt)
-
getCodedSignedInt
public static int getCodedSignedInt(long unsignedInt)
-
getUnsignedInt
public static long getUnsignedInt(int signedInt)
-
duplicateTypeOnSameNativeImg
public UnsignedIntType 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<UnsignedIntType,IntAccess> getNativeTypeFactory()
- Specified by:
getNativeTypeFactoryin interfaceNativeType<UnsignedIntType>- Specified by:
getNativeTypeFactoryin classGenericIntType<UnsignedIntType>
-
mul
public void mul(float c)
- Specified by:
mulin interfaceMulFloatingPoint- Overrides:
mulin classGenericIntType<UnsignedIntType>
-
mul
public void mul(double c)
- Specified by:
mulin interfaceMulFloatingPoint- Overrides:
mulin classGenericIntType<UnsignedIntType>
-
add
public void add(UnsignedIntType c)
- Specified by:
addin interfaceAdd<UnsignedIntType>- Overrides:
addin classGenericIntType<UnsignedIntType>
-
div
public void div(UnsignedIntType c)
- Specified by:
divin interfaceDiv<UnsignedIntType>- Overrides:
divin classGenericIntType<UnsignedIntType>
-
mul
public void mul(UnsignedIntType c)
- Specified by:
mulin interfaceMul<UnsignedIntType>- Overrides:
mulin classGenericIntType<UnsignedIntType>
-
sub
public void sub(UnsignedIntType c)
- Specified by:
subin interfaceSub<UnsignedIntType>- Overrides:
subin classGenericIntType<UnsignedIntType>
-
setOne
public void setOne()
- Specified by:
setOnein interfaceSetOne- Overrides:
setOnein classGenericIntType<UnsignedIntType>
-
setZero
public void setZero()
- Specified by:
setZeroin interfaceSetZero- Overrides:
setZeroin classGenericIntType<UnsignedIntType>
-
inc
public void inc()
- Specified by:
incin interfaceRealType<UnsignedIntType>- Overrides:
incin classGenericIntType<UnsignedIntType>
-
dec
public void dec()
- Specified by:
decin interfaceRealType<UnsignedIntType>- Overrides:
decin classGenericIntType<UnsignedIntType>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classGenericIntType<UnsignedIntType>
-
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<UnsignedIntType>- Overrides:
setRealin classAbstractIntegerType<UnsignedIntType>
-
getMaxValue
public double getMaxValue()
-
getMinValue
public double getMinValue()
-
createVariable
public UnsignedIntType createVariable()
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Returns:
- a new
Typevariable
-
copy
public UnsignedIntType copy()
Description copied from interface:Type- Returns:
- a new
Typevariable
-
compareTo
public int compareTo(UnsignedIntType other)
- Specified by:
compareToin interfacejava.lang.Comparable<UnsignedIntType>- Overrides:
compareToin classGenericIntType<UnsignedIntType>
-
-