Package org.ojalgo.type
Class TypeUtils
java.lang.Object
org.ojalgo.type.TypeUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
static final long
static final long
private static final char
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Compatible with slf4j.static final GregorianCalendar
static final GregorianCalendar
static final GregorianCalendar
(package private) static boolean
isSameDate
(Calendar aCal1, Calendar aCal2) (package private) static boolean
isSameTime
(Calendar aCal1, Calendar aCal2) static BigDecimal
toBigDecimal
(Comparable<?> number) If the inputinvalid reference
java.lang.Comparale
static BigDecimal
toBigDecimal
(Comparable<?> number, NumberContext context) static String
toHexString
(int colour) The way colours are specified in html pages.
-
Field Details
-
HOURS_PER_CENTURY
public static final long HOURS_PER_CENTURY- See Also:
-
MILLIS_PER_HOUR
public static final long MILLIS_PER_HOUR- See Also:
-
HEX
- See Also:
-
START
private static final char START- See Also:
-
-
Constructor Details
-
TypeUtils
protected TypeUtils()
-
-
Method Details
-
format
Compatible with slf4j. {} in the message pattern will be replaced by the arguments. -
getHundredYearsAgo
-
getThousandYearsAgo
-
getThousandYearsFromNow
-
toBigDecimal
If the inputinvalid reference
java.lang.Comparale
BigDecimal
instance - which, among other things, means that null and NaN are replaced by 0.0 (zero).- Parameters:
number
- Any Number- Returns:
- A corresponding BigDecimal
-
toBigDecimal
-
toHexString
The way colours are specified in html pages. -
isSameDate
-
isSameTime
-