@Immutable public class CalendarDuration extends Object
change to JSR-310 javax.time.Duration when ready relation to javax.xml.datatype ?
Constructor and Description |
---|
CalendarDuration(int value,
CalendarPeriod.Field timeUnit) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static CalendarDuration |
fromUnitString(String unitString) |
CalendarPeriod.Field |
getTimeUnit() |
double |
getValue()
Get the duration in natural units, ie units of getTimeUnit()
|
int |
hashCode() |
String |
toString()
String representation
|
public CalendarDuration(int value, CalendarPeriod.Field timeUnit)
public static CalendarDuration fromUnitString(String unitString)
public CalendarPeriod.Field getTimeUnit()
public double getValue()