Package jromp.var

Class InitialValues

java.lang.Object
jromp.var.InitialValues

public class InitialValues extends Object
A class that provides initial values for variables.
  • Method Details

    • getInitialValue

      public static <T> T getInitialValue(Class<T> clazz)
      Returns the initial value for the given class.
      Type Parameters:
      T - the type of the variable.
      Parameters:
      clazz - the class of the variable.
      Returns:
      the initial value for the given class.
    • registerInitialValue

      public static <T> void registerInitialValue(Class<T> clazz, T value)
      Registers an initial value for the given class.
      Type Parameters:
      T - the type of the variable.
      Parameters:
      clazz - the class of the variable.
      value - the initial value for the class.
    • registerBigNumbers

      public static void registerBigNumbers()
      Registers the initial values for big numbers (BigInteger and BigDecimal), with initial values of BigInteger.ZERO and BigDecimal.ZERO respectively.