public abstract class TypeUtils extends Object
Modifier and Type | Field and Description |
---|---|
static long |
HOURS_PER_CENTURY |
static long |
MILLIS_PER_HOUR |
Modifier | Constructor and Description |
---|---|
protected |
TypeUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
format(String messagePattern,
Object... args)
Compatible with slf4j.
|
static GregorianCalendar |
getHundredYearsAgo() |
static GregorianCalendar |
getThousandYearsAgo() |
static GregorianCalendar |
getThousandYearsFromNow() |
static BigDecimal |
toBigDecimal(Number number)
If the input Number is a BigDecimal it is passed through
unaltered.
|
static BigDecimal |
toBigDecimal(Number number,
NumberContext context) |
static String |
toHexString(int colour)
The way colours are specified in html pages.
|
public static final long HOURS_PER_CENTURY
public static final long MILLIS_PER_HOUR
public static String format(String messagePattern, Object... args)
public static final GregorianCalendar getHundredYearsAgo()
public static final GregorianCalendar getThousandYearsAgo()
public static final GregorianCalendar getThousandYearsFromNow()
public static BigDecimal toBigDecimal(Number number)
number
- Any Numberpublic static BigDecimal toBigDecimal(Number number, NumberContext context)
public static String toHexString(int colour)
Copyright © 2019 Optimatika. All rights reserved.