Class InvestmentNumericUtil
- java.lang.Object
-
- org.optaplanner.examples.investment.domain.util.InvestmentNumericUtil
-
public class InvestmentNumericUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static longMAXIMUM_QUANTITY_MILLISprotected static BigDecimalMICROS_DIVISORprotected static BigDecimalMILLIS_DIVISORprotected static NumberFormatMILLIS_NUMBER_FORMATstatic StringMILLIS_NUMBER_PATTERNprotected static NumberFormatMILLIS_PERCENT_FORMATstatic StringMILLIS_PERCENT_PATTERN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringformatMicrosAsPercentage(long micros)static StringformatMillisAsNumber(long millis)static StringformatMillisAsPercentage(long millis)
-
-
-
Field Detail
-
MAXIMUM_QUANTITY_MILLIS
public static final long MAXIMUM_QUANTITY_MILLIS
- See Also:
- Constant Field Values
-
MILLIS_NUMBER_PATTERN
public static final String MILLIS_NUMBER_PATTERN
- See Also:
- Constant Field Values
-
MILLIS_PERCENT_PATTERN
public static final String MILLIS_PERCENT_PATTERN
- See Also:
- Constant Field Values
-
MILLIS_NUMBER_FORMAT
protected static final NumberFormat MILLIS_NUMBER_FORMAT
-
MILLIS_PERCENT_FORMAT
protected static final NumberFormat MILLIS_PERCENT_FORMAT
-
MILLIS_DIVISOR
protected static final BigDecimal MILLIS_DIVISOR
-
MICROS_DIVISOR
protected static final BigDecimal MICROS_DIVISOR
-
-