Package net.imglib2.type.numeric.integer
Class UnsignedShortType
- 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.GenericShortType<UnsignedShortType>
-
- net.imglib2.type.numeric.integer.UnsignedShortType
-
- All Implemented Interfaces:
java.lang.Comparable<UnsignedShortType>,NativeType<UnsignedShortType>,ComplexType<UnsignedShortType>,IntegerType<UnsignedShortType>,NumericType<UnsignedShortType>,RealType<UnsignedShortType>,Add<UnsignedShortType>,Div<UnsignedShortType>,Mul<UnsignedShortType>,MulFloatingPoint,Pow<UnsignedShortType>,PowFloatingPoint,SetOne,SetZero,Sub<UnsignedShortType>,ValueEquals<UnsignedShortType>,Type<UnsignedShortType>
- Direct Known Subclasses:
VolatileUnsignedShortType.WrappedUnsignedShortType
public class UnsignedShortType extends GenericShortType<UnsignedShortType>
TODO
-
-
Field Summary
Fields Modifier and Type Field Description private static NativeTypeFactory<UnsignedShortType,ShortAccess>typeFactory-
Fields inherited from class net.imglib2.type.numeric.integer.GenericShortType
dataAccess, i, img
-
-
Constructor Summary
Constructors Constructor Description UnsignedShortType()UnsignedShortType(int value)UnsignedShortType(ShortAccess access)UnsignedShortType(NativeImg<?,? extends ShortAccess> img)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(UnsignedShortType c)intcompareTo(UnsignedShortType other)UnsignedShortTypecopy()UnsignedShortTypecreateVariable()Creates a newTypevariable which can only store one value.voiddec()voiddiv(UnsignedShortType c)UnsignedShortTypeduplicateTypeOnSameNativeImg()Creates a newNativeTypewhich stores in the same physical array.intget()java.math.BigIntegergetBigInteger()static shortgetCodedSignedShort(int unsignedShort)static shortgetCodedSignedShortChecked(int unsignedShort)intgetInteger()longgetIntegerLong()doublegetMaxValue()doublegetMinValue()NativeTypeFactory<UnsignedShortType,ShortAccess>getNativeTypeFactory()static intgetUnsignedShort(short signedShort)voidinc()voidmul(double c)voidmul(float c)voidmul(UnsignedShortType c)voidset(int f)voidsetBigInteger(java.math.BigInteger b)voidsetInteger(int f)voidsetInteger(long f)voidsub(UnsignedShortType c)java.lang.StringtoString()-
Methods inherited from class net.imglib2.type.numeric.integer.GenericShortType
equals, getBitsPerPixel, getEntitiesPerPixel, getShort, getValue, hashCode, index, set, setOne, setShort, setValue, setZero, updateContainer, 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
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<UnsignedShortType,ShortAccess> typeFactory
-
-
Constructor Detail
-
UnsignedShortType
public UnsignedShortType(NativeImg<?,? extends ShortAccess> img)
-
UnsignedShortType
public UnsignedShortType(int value)
-
UnsignedShortType
public UnsignedShortType(ShortAccess access)
-
UnsignedShortType
public UnsignedShortType()
-
-
Method Detail
-
getCodedSignedShortChecked
public static short getCodedSignedShortChecked(int unsignedShort)
-
getCodedSignedShort
public static short getCodedSignedShort(int unsignedShort)
-
getUnsignedShort
public static int getUnsignedShort(short signedShort)
-
duplicateTypeOnSameNativeImg
public UnsignedShortType 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<UnsignedShortType,ShortAccess> getNativeTypeFactory()
- Specified by:
getNativeTypeFactoryin interfaceNativeType<UnsignedShortType>- Specified by:
getNativeTypeFactoryin classGenericShortType<UnsignedShortType>
-
mul
public void mul(float c)
- Specified by:
mulin interfaceMulFloatingPoint- Overrides:
mulin classGenericShortType<UnsignedShortType>
-
mul
public void mul(double c)
- Specified by:
mulin interfaceMulFloatingPoint- Overrides:
mulin classGenericShortType<UnsignedShortType>
-
add
public void add(UnsignedShortType c)
- Specified by:
addin interfaceAdd<UnsignedShortType>- Overrides:
addin classGenericShortType<UnsignedShortType>
-
div
public void div(UnsignedShortType c)
- Specified by:
divin interfaceDiv<UnsignedShortType>- Overrides:
divin classGenericShortType<UnsignedShortType>
-
mul
public void mul(UnsignedShortType c)
- Specified by:
mulin interfaceMul<UnsignedShortType>- Overrides:
mulin classGenericShortType<UnsignedShortType>
-
sub
public void sub(UnsignedShortType c)
- Specified by:
subin interfaceSub<UnsignedShortType>- Overrides:
subin classGenericShortType<UnsignedShortType>
-
inc
public void inc()
- Specified by:
incin interfaceRealType<UnsignedShortType>- Overrides:
incin classGenericShortType<UnsignedShortType>
-
dec
public void dec()
- Specified by:
decin interfaceRealType<UnsignedShortType>- Overrides:
decin classGenericShortType<UnsignedShortType>
-
get
public int get()
-
set
public void set(int 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()
-
createVariable
public UnsignedShortType createVariable()
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Returns:
- a new
Typevariable
-
copy
public UnsignedShortType copy()
Description copied from interface:Type- Returns:
- a new
Typevariable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classGenericShortType<UnsignedShortType>
-
compareTo
public int compareTo(UnsignedShortType other)
- Specified by:
compareToin interfacejava.lang.Comparable<UnsignedShortType>- Overrides:
compareToin classGenericShortType<UnsignedShortType>
-
-