Package jromp.var
Class InitialValues
java.lang.Object
jromp.var.InitialValues
A class that provides initial values for variables.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
getInitialValue
(Class<T> clazz) Returns the initial value for the given class.static void
Registers the initial values for big numbers (BigInteger
andBigDecimal
), with initial values ofBigInteger.ZERO
andBigDecimal.ZERO
respectively.static <T> void
registerInitialValue
(Class<T> clazz, T value) Registers an initial value for the given class.
-
Method Details
-
getInitialValue
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
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
andBigDecimal
), with initial values ofBigInteger.ZERO
andBigDecimal.ZERO
respectively.
-