Package net.imglib2.type.numeric.integer
Class ShortType
- 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<ShortType>
-
- net.imglib2.type.numeric.integer.ShortType
-
- All Implemented Interfaces:
java.lang.Comparable<ShortType>,NativeType<ShortType>,ComplexType<ShortType>,IntegerType<ShortType>,NumericType<ShortType>,RealType<ShortType>,Add<ShortType>,Div<ShortType>,Mul<ShortType>,MulFloatingPoint,Pow<ShortType>,PowFloatingPoint,SetOne,SetZero,Sub<ShortType>,ValueEquals<ShortType>,Type<ShortType>
- Direct Known Subclasses:
VolatileShortType.WrappedShortType
public class ShortType extends GenericShortType<ShortType>
TODO
-
-
Field Summary
Fields Modifier and Type Field Description private static NativeTypeFactory<ShortType,ShortAccess>typeFactory-
Fields inherited from class net.imglib2.type.numeric.integer.GenericShortType
dataAccess, i, img
-
-
Constructor Summary
Constructors Constructor Description ShortType()ShortType(short value)ShortType(ShortAccess access)ShortType(NativeImg<?,? extends ShortAccess> img)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShortTypecopy()ShortTypecreateVariable()Creates a newTypevariable which can only store one value.ShortTypeduplicateTypeOnSameNativeImg()Creates a newNativeTypewhich stores in the same physical array.shortget()java.math.BigIntegergetBigInteger()intgetInteger()longgetIntegerLong()doublegetMaxValue()doublegetMinValue()NativeTypeFactory<ShortType,ShortAccess>getNativeTypeFactory()voidset(short b)voidsetBigInteger(java.math.BigInteger b)voidsetInteger(int f)voidsetInteger(long f)-
Methods inherited from class net.imglib2.type.numeric.integer.GenericShortType
add, compareTo, dec, div, equals, getBitsPerPixel, getEntitiesPerPixel, getShort, getValue, hashCode, inc, index, mul, mul, mul, set, setOne, setShort, setValue, setZero, sub, toString, 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<ShortType,ShortAccess> typeFactory
-
-
Constructor Detail
-
ShortType
public ShortType(NativeImg<?,? extends ShortAccess> img)
-
ShortType
public ShortType(short value)
-
ShortType
public ShortType(ShortAccess access)
-
ShortType
public ShortType()
-
-
Method Detail
-
duplicateTypeOnSameNativeImg
public ShortType 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<ShortType,ShortAccess> getNativeTypeFactory()
- Specified by:
getNativeTypeFactoryin interfaceNativeType<ShortType>- Specified by:
getNativeTypeFactoryin classGenericShortType<ShortType>
-
get
public short get()
-
set
public void set(short b)
-
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 ShortType createVariable()
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Returns:
- a new
Typevariable
-
-