Class VolatileNumericType<T extends NumericType<T>>

All Implemented Interfaces:
NumericType<VolatileNumericType<T>>, Add<VolatileNumericType<T>>, Div<VolatileNumericType<T>>, Mul<VolatileNumericType<T>>, MulFloatingPoint, SetOne, SetZero, Sub<VolatileNumericType<T>>, ValueEquals<VolatileNumericType<T>>, Type<VolatileNumericType<T>>

public class VolatileNumericType<T extends NumericType<T>> extends AbstractVolatileNumericType<T,VolatileNumericType<T>>
Something volatile that has a value and is either VALID or INVALID.
Author:
Stephan Saalfeld
  • Constructor Details

    • VolatileNumericType

      public VolatileNumericType(T t, boolean valid)
    • VolatileNumericType

      public VolatileNumericType(T t)
  • Method Details

    • createVariable

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

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