public class TimeAmount extends Object
| Constructor and Description |
|---|
TimeAmount() |
TimeAmount(long quantity,
DateIntervalType sizeType) |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustDate(Date d) |
TimeAmount |
cloneInstance() |
long |
getQuantity() |
DateIntervalType |
getType() |
static TimeAmount |
parse(String timeAmount)
Parses a time amount expression.
|
void |
setQuantity(long quantity) |
void |
setType(DateIntervalType type) |
long |
toMillis() |
String |
toString() |
public TimeAmount()
public TimeAmount(long quantity,
DateIntervalType sizeType)
public long getQuantity()
public void setQuantity(long quantity)
public DateIntervalType getType()
public void setType(DateIntervalType type)
public long toMillis()
public TimeAmount cloneInstance()
public void adjustDate(Date d)
public static TimeAmount parse(String timeAmount)
IllegalArgumentException - If the expression is not validCopyright © 2017–2020 JBoss by Red Hat. All rights reserved.