net.sf.antcontrib.process
public static class Limit.TimeUnit extends EnumeratedAttribute
Field Summary | |
---|---|
static String | DAY |
static Limit.TimeUnit | DAY_UNIT |
static String | HOUR |
static Limit.TimeUnit | HOUR_UNIT |
static String | MILLISECOND |
static Limit.TimeUnit | MILLISECOND_UNIT static unit objects, for use as sensible defaults |
static String | MINUTE |
static Limit.TimeUnit | MINUTE_UNIT |
static String | SECOND |
static Limit.TimeUnit | SECOND_UNIT |
static String | WEEK |
static Limit.TimeUnit | WEEK_UNIT |
Constructor Summary | |
---|---|
TimeUnit() |
Method Summary | |
---|---|
long | getMultiplier() |
String[] | getValues() |
protected void | setValueProgrammatically(String value)
set the inner value programmatically. |
long | toMillis(long numberOfUnits)
convert the time in the current unit, to millis |
Parameters: value to set
Parameters: numberOfUnits long expressed in the current objects units
Returns: long representing the value in millis