org.ojalgo.type
Enum TimeUnit
java.lang.Object
java.lang.Enum<TimeUnit>
org.ojalgo.type.TimeUnit
- All Implemented Interfaces:
- Serializable, Comparable<TimeUnit>
public enum TimeUnit
- extends Enum<TimeUnit>
MILLIS
public static final TimeUnit MILLIS
SECOND
public static final TimeUnit SECOND
MINUTE
public static final TimeUnit MINUTE
HOUR
public static final TimeUnit HOUR
DAY
public static final TimeUnit DAY
WEEK
public static final TimeUnit WEEK
MONTH
public static final TimeUnit MONTH
QUARTER
public static final TimeUnit QUARTER
YEAR
public static final TimeUnit YEAR
DECADE
public static final TimeUnit DECADE
CENTURY
public static final TimeUnit CENTURY
MILLENIUM
public static final TimeUnit MILLENIUM
values
public static final TimeUnit[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(TimeUnit c : TimeUnit.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static TimeUnit valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
count
public long count(Calendar aToCalendar)
count
public long count(Calendar aFromCalendar,
Calendar aToCalendar)
count
public long count(Date aToDate)
count
public long count(Date aFromDate,
Date aToDate)
round
public Calendar round(Calendar aCalendar)
round
public Date round(Date aDate)
size
public long size()
strip
public void strip(Calendar aCalendar)