Class LongType

All Implemented Interfaces:
Comparable<LongType>, NativeType<LongType>, ComplexType<LongType>, IntegerType<LongType>, NumericType<LongType>, RealType<LongType>, Add<LongType>, Div<LongType>, Mul<LongType>, MulFloatingPoint, SetOne, SetZero, Sub<LongType>, ValueEquals<LongType>, Type<LongType>

public class LongType extends GenericLongType<LongType>
TODO
Author:
Stephan Preibisch, Stephan Saalfeld, Mark Hiner
  • Constructor Details

    • LongType

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

      public LongType(LongAccess access)
    • LongType

      public LongType(long value)
    • LongType

      public LongType()
  • Method Details

    • createSuitableNativeImg

      public NativeImg<LongType,? extends LongAccess> createSuitableNativeImg(NativeImgFactory<LongType> storageFactory, long[] dim)
      Description copied from interface: NativeType
      The NativeType creates the NativeImg used for storing image data; based on the given storage strategy and its size. It basically only decides here which BasicType it uses (float, int, byte, bit, ...) and how many entities per pixel it needs (e.g. 2 floats per pixel for a complex number). This enables the separation of containers and the basic types.
      Parameters:
      storageFactory - which storage strategy is used
      dim - the dimensions
      Returns:
      the instantiated NativeImg where only the Type knows the BasicType it contains.
    • 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
    • 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)
    • getMaxValue

      public double getMaxValue()
    • getMinValue

      public double getMinValue()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class GenericLongType<LongType>
    • compareTo

      public int compareTo(LongType c)
      Specified by:
      compareTo in interface Comparable<LongType>
      Overrides:
      compareTo in class GenericLongType<LongType>
    • 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