Class ShortType
- All Implemented Interfaces:
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
TODO
-
Field Summary
FieldsFields inherited from class GenericShortType
dataAccess, i, img -
Constructor Summary
ConstructorsConstructorDescriptionShortType(short value) ShortType(ShortAccess access) ShortType(NativeImg<?, ? extends ShortAccess> img) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a newTypevariable which can only store one value.Creates a newNativeTypewhich stores in the same physical array.shortget()intlongdoubledoublevoidset(short b) voidvoidsetInteger(int f) voidsetInteger(long f) Methods inherited from class GenericShortType
add, compareTo, dec, div, equals, getBitsPerPixel, getEntitiesPerPixel, getShort, getValue, hashCode, inc, index, mul, mul, mul, set, setOne, setShort, setValue, setZero, sub, toString, updateContainer, valueEqualsMethods inherited from class AbstractIntegerType
getMinIncrement, getRealDouble, getRealFloat, setReal, setRealMethods inherited from class AbstractRealType
getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, pow, pow, 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, updateIndexMethods inherited from interface PowFloatingPoint
pow
-
Field Details
-
typeFactory
-
-
Constructor Details
-
ShortType
-
ShortType
public ShortType(short value) -
ShortType
-
ShortType
public ShortType()
-
-
Method Details
-
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<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
-
setInteger
public void setInteger(int f) -
setInteger
public void setInteger(long f) -
setBigInteger
-
getMaxValue
public double getMaxValue() -
getMinValue
public double getMinValue() -
createVariable
-
copy
-