Class UnsignedIntType
java.lang.Object
net.imglib2.type.numeric.complex.AbstractComplexType<UnsignedIntType>
net.imglib2.type.numeric.real.AbstractRealType<UnsignedIntType>
net.imglib2.type.numeric.integer.AbstractIntegerType<UnsignedIntType>
net.imglib2.type.numeric.integer.GenericIntType<UnsignedIntType>
net.imglib2.type.numeric.integer.UnsignedIntType
- All Implemented Interfaces:
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
TODO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final NativeTypeFactory<UnsignedIntType, IntAccess> Fields inherited from class GenericIntType
dataAccess, i, img -
Constructor Summary
ConstructorsConstructorDescriptionUnsignedIntType(long value) UnsignedIntType(IntAccess access) UnsignedIntType(NativeImg<?, ? extends IntAccess> img) -
Method Summary
Modifier and TypeMethodDescriptionvoidintcompareTo(UnsignedIntType other) copy()Creates a newTypevariable which can only store one value.voiddec()voidCreates a newNativeTypewhich stores in the same physical array.longget()static intgetCodedSignedInt(long unsignedInt) static intgetCodedSignedIntChecked(long unsignedInt) intlongdoubledoublestatic longgetUnsignedInt(int signedInt) voidinc()voidmul(double c) voidmul(float c) voidvoidset(long f) voidvoidsetInteger(int f) voidsetInteger(long f) voidsetOne()voidsetReal(float real) voidsetZero()voidtoString()Methods inherited from class GenericIntType
equals, getBitsPerPixel, getEntitiesPerPixel, getInt, getValue, hashCode, index, pow, pow, set, setInt, setValue, updateContainer, valueEqualsMethods inherited from class AbstractIntegerType
getMinIncrement, getRealDouble, getRealFloat, setRealMethods inherited from class AbstractRealType
getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setImaginary, setImaginaryMethods inherited from class AbstractComplexType
complexConjugate, setComplexNumber, setComplexNumberMethods inherited from interface ComplexType
complexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginaryMethods inherited from interface NativeType
decIndex, decIndex, getIndex, incIndex, incIndex, updateIndex
-
Field Details
-
typeFactory
-
-
Constructor Details
-
UnsignedIntType
-
UnsignedIntType
public UnsignedIntType(long value) -
UnsignedIntType
-
UnsignedIntType
public UnsignedIntType()
-
-
Method Details
-
getCodedSignedIntChecked
public static int getCodedSignedIntChecked(long unsignedInt) -
getCodedSignedInt
public static int getCodedSignedInt(long unsignedInt) -
getUnsignedInt
public static long getUnsignedInt(int signedInt) -
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
- 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
- Specified by:
addin interfaceAdd<UnsignedIntType>- Overrides:
addin classGenericIntType<UnsignedIntType>
-
div
- Specified by:
divin interfaceDiv<UnsignedIntType>- Overrides:
divin classGenericIntType<UnsignedIntType>
-
mul
- Specified by:
mulin interfaceMul<UnsignedIntType>- Overrides:
mulin classGenericIntType<UnsignedIntType>
-
sub
- 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
- Overrides:
toStringin classGenericIntType<UnsignedIntType>
-
get
public long get() -
set
public void set(long f) -
getInteger
public int getInteger() -
getIntegerLong
public long getIntegerLong() -
getBigInteger
-
setInteger
public void setInteger(int f) -
setInteger
public void setInteger(long f) -
setBigInteger
-
setReal
public void setReal(float real) - Specified by:
setRealin interfaceComplexType<UnsignedIntType>- Overrides:
setRealin classAbstractIntegerType<UnsignedIntType>
-
getMaxValue
public double getMaxValue() -
getMinValue
public double getMinValue() -
createVariable
-
copy
-
compareTo
- Specified by:
compareToin interfaceComparable<UnsignedIntType>- Overrides:
compareToin classGenericIntType<UnsignedIntType>
-