- java.lang.Object
-
- org.scijava.ops.image.util.UnboundedIntegerType
-
- All Implemented Interfaces:
Comparable<UnboundedIntegerType>,ComplexType<UnboundedIntegerType>,IntegerType<UnboundedIntegerType>,NumericType<UnboundedIntegerType>,RealType<UnboundedIntegerType>,Add<UnboundedIntegerType>,Div<UnboundedIntegerType>,Mul<UnboundedIntegerType>,MulFloatingPoint,Pow<UnboundedIntegerType>,PowFloatingPoint,SetOne,SetZero,Sub<UnboundedIntegerType>,ValueEquals<UnboundedIntegerType>,Type<UnboundedIntegerType>
public class UnboundedIntegerType extends Object implements IntegerType<UnboundedIntegerType>
A BigInteger backed integral type (unlimited range).- Author:
- Barry DeZonia
-
-
Constructor Summary
Constructors Constructor Description UnboundedIntegerType()UnboundedIntegerType(long val)UnboundedIntegerType(BigInteger val)UnboundedIntegerType(UnboundedIntegerType other)
-
Method Summary
-
-
-
Constructor Detail
-
UnboundedIntegerType
public UnboundedIntegerType()
-
UnboundedIntegerType
public UnboundedIntegerType(UnboundedIntegerType other)
-
UnboundedIntegerType
public UnboundedIntegerType(long val)
-
UnboundedIntegerType
public UnboundedIntegerType(BigInteger val)
-
-
Method Detail
-
get
public BigInteger get()
-
set
public void set(long val)
-
set
public void set(BigInteger val)
-
createVariable
public UnboundedIntegerType createVariable()
- Specified by:
createVariablein interfaceType<UnboundedIntegerType>
-
copy
public UnboundedIntegerType copy()
- Specified by:
copyin interfaceType<UnboundedIntegerType>
-
set
public void set(UnboundedIntegerType val)
- Specified by:
setin interfaceType<UnboundedIntegerType>
-
add
public void add(UnboundedIntegerType val)
- Specified by:
addin interfaceAdd<UnboundedIntegerType>
-
sub
public void sub(UnboundedIntegerType val)
- Specified by:
subin interfaceSub<UnboundedIntegerType>
-
mul
public void mul(UnboundedIntegerType val)
- Specified by:
mulin interfaceMul<UnboundedIntegerType>
-
div
public void div(UnboundedIntegerType val)
- Specified by:
divin interfaceDiv<UnboundedIntegerType>
-
mul
public void mul(float val)
- Specified by:
mulin interfaceMulFloatingPoint
-
mul
public void mul(double val)
- Specified by:
mulin interfaceMulFloatingPoint
-
mul
public void mul(BigInteger val)
-
mul
public void mul(BigDecimal val)
-
pow
public void pow(UnboundedIntegerType c)
- Specified by:
powin interfacePow<UnboundedIntegerType>
-
pow
public void pow(double c)
- Specified by:
powin interfacePowFloatingPoint
-
inc
public void inc()
- Specified by:
incin interfaceRealType<UnboundedIntegerType>
-
dec
public void dec()
- Specified by:
decin interfaceRealType<UnboundedIntegerType>
-
getMaxValue
public double getMaxValue()
- Specified by:
getMaxValuein interfaceRealType<UnboundedIntegerType>
-
getMinValue
public double getMinValue()
- Specified by:
getMinValuein interfaceRealType<UnboundedIntegerType>
-
getMinIncrement
public double getMinIncrement()
- Specified by:
getMinIncrementin interfaceRealType<UnboundedIntegerType>
-
getBitsPerPixel
public int getBitsPerPixel()
- Specified by:
getBitsPerPixelin interfaceRealType<UnboundedIntegerType>
-
getRealDouble
public double getRealDouble()
- Specified by:
getRealDoublein interfaceComplexType<UnboundedIntegerType>
-
getRealFloat
public float getRealFloat()
- Specified by:
getRealFloatin interfaceComplexType<UnboundedIntegerType>
-
getImaginaryDouble
public double getImaginaryDouble()
- Specified by:
getImaginaryDoublein interfaceComplexType<UnboundedIntegerType>
-
getImaginaryFloat
public float getImaginaryFloat()
- Specified by:
getImaginaryFloatin interfaceComplexType<UnboundedIntegerType>
-
setReal
public void setReal(float f)
- Specified by:
setRealin interfaceComplexType<UnboundedIntegerType>
-
setReal
public void setReal(double f)
- Specified by:
setRealin interfaceComplexType<UnboundedIntegerType>
-
setImaginary
public void setImaginary(float f)
- Specified by:
setImaginaryin interfaceComplexType<UnboundedIntegerType>
-
setImaginary
public void setImaginary(double f)
- Specified by:
setImaginaryin interfaceComplexType<UnboundedIntegerType>
-
setComplexNumber
public void setComplexNumber(float r, float i)- Specified by:
setComplexNumberin interfaceComplexType<UnboundedIntegerType>
-
setComplexNumber
public void setComplexNumber(double r, double i)- Specified by:
setComplexNumberin interfaceComplexType<UnboundedIntegerType>
-
getPowerFloat
public float getPowerFloat()
- Specified by:
getPowerFloatin interfaceComplexType<UnboundedIntegerType>
-
getPowerDouble
public double getPowerDouble()
- Specified by:
getPowerDoublein interfaceComplexType<UnboundedIntegerType>
-
getPhaseFloat
public float getPhaseFloat()
- Specified by:
getPhaseFloatin interfaceComplexType<UnboundedIntegerType>
-
getPhaseDouble
public double getPhaseDouble()
- Specified by:
getPhaseDoublein interfaceComplexType<UnboundedIntegerType>
-
complexConjugate
public void complexConjugate()
- Specified by:
complexConjugatein interfaceComplexType<UnboundedIntegerType>
-
compareTo
public int compareTo(UnboundedIntegerType o)
- Specified by:
compareToin interfaceComparable<UnboundedIntegerType>
-
getInteger
public int getInteger()
- Specified by:
getIntegerin interfaceIntegerType<UnboundedIntegerType>
-
getIntegerLong
public long getIntegerLong()
- Specified by:
getIntegerLongin interfaceIntegerType<UnboundedIntegerType>
-
getBigInteger
public BigInteger getBigInteger()
- Specified by:
getBigIntegerin interfaceIntegerType<UnboundedIntegerType>
-
setInteger
public void setInteger(int f)
- Specified by:
setIntegerin interfaceIntegerType<UnboundedIntegerType>
-
setInteger
public void setInteger(long f)
- Specified by:
setIntegerin interfaceIntegerType<UnboundedIntegerType>
-
setBigInteger
public void setBigInteger(BigInteger v)
- Specified by:
setBigIntegerin interfaceIntegerType<UnboundedIntegerType>
-
valueEquals
public boolean valueEquals(UnboundedIntegerType t)
- Specified by:
valueEqualsin interfaceValueEquals<UnboundedIntegerType>
-
-