Class LongType
- All Implemented Interfaces:
Comparable<LongType>, NativeType<LongType>, ComplexType<LongType>, IntegerType<LongType>, NumericType<LongType>, RealType<LongType>, Add<LongType>, Div<LongType>, Mul<LongType>, MulFloatingPoint, Pow<LongType>, PowFloatingPoint, SetOne, SetZero, Sub<LongType>, ValueEquals<LongType>, Type<LongType>
- Direct Known Subclasses:
VolatileLongType.WrappedLongType
TODO
-
Field Summary
FieldsFields inherited from class GenericLongType
dataAccess, i, img -
Constructor Summary
ConstructorsConstructorDescriptionLongType()LongType(long value) LongType(LongAccess access) LongType(NativeImg<?, ? extends LongAccess> longStorage) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a newTypevariable which can only store one value.Creates a newNativeTypewhich stores in the same physical array.longget()intlongdoubledoublevoidset(long f) voidvoidsetInteger(int f) voidsetInteger(long f) voidsetReal(float real) Methods inherited from class GenericLongType
add, compareTo, dec, div, equals, getBitsPerPixel, getEntitiesPerPixel, getLong, getValue, hashCode, inc, index, mul, mul, mul, set, setLong, setOne, setValue, setZero, sub, toString, updateContainer, valueEqualsMethods inherited from class AbstractIntegerType
getMinIncrement, getRealDouble, getRealFloat, 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
-
LongType
-
LongType
-
LongType
public LongType(long value) -
LongType
public LongType()
-
-
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<LongType>- Specified by:
getNativeTypeFactoryin classGenericLongType<LongType>
-
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<LongType>- Overrides:
setRealin classAbstractIntegerType<LongType>
-
getMaxValue
public double getMaxValue() -
getMinValue
public double getMinValue() -
createVariable
-
copy
-