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

public class LongType extends GenericLongType<LongType>
TODO
  • Field Details

  • Constructor Details

    • LongType

      public LongType(NativeImg<?, ? extends LongAccess> longStorage)
    • LongType

      public LongType(LongAccess access)
    • LongType

      public LongType(long value)
    • LongType

      public LongType()
  • Method Details

    • duplicateTypeOnSameNativeImg

      public LongType duplicateTypeOnSameNativeImg()
      Description copied from interface: NativeType
      Creates a new NativeType which stores in the same physical array. This is only used internally.
      Returns:
      a new NativeType instance working on the same NativeImg
    • getNativeTypeFactory

      public NativeTypeFactory<LongType, LongAccess> getNativeTypeFactory()
      Specified by:
      getNativeTypeFactory in interface NativeType<LongType>
      Specified by:
      getNativeTypeFactory in class GenericLongType<LongType>
    • get

      public long get()
    • set

      public void set(long f)
    • getInteger

      public int getInteger()
    • getIntegerLong

      public long getIntegerLong()
    • getBigInteger

      public BigInteger getBigInteger()
    • setInteger

      public void setInteger(int f)
    • setInteger

      public void setInteger(long f)
    • setBigInteger

      public void setBigInteger(BigInteger b)
    • setReal

      public void setReal(float real)
      Specified by:
      setReal in interface ComplexType<LongType>
      Overrides:
      setReal in class AbstractIntegerType<LongType>
    • getMaxValue

      public double getMaxValue()
    • getMinValue

      public double getMinValue()
    • createVariable

      public LongType createVariable()
      Description copied from interface: Type
      Creates a new Type variable which can only store one value.
      Returns:
      a new Type variable
    • copy

      public LongType copy()
      Description copied from interface: Type
      Creates a new Type variable that has the value of this Type
      Returns:
      a new Type variable