|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents an XML Schema-compatible duration.
Both the immutable GDuration and the mutable GDurationBuilder are GDurationSpecifications. Use this interface where you want to allow callers to pass any implementation of a GDuration.
GDuration
Method Summary | |
int |
compareToGDuration(GDurationSpecification duration)
Comparison to another GDuration. |
int |
getDay()
Gets the day-of-month component. |
BigDecimal |
getFraction()
Gets the fraction-of-second. |
int |
getHour()
Gets the hour-of-day component. |
int |
getMinute()
Gets the minute-of-hour component. |
int |
getMonth()
Gets the month-of-year component. |
int |
getSecond()
Gets the second-of-minute component. |
int |
getSign()
Returns the sign of the duration: +1 is forwards and -1 is backwards in time. |
int |
getYear()
Gets the year component. |
boolean |
isImmutable()
True if this instance is immutable. |
boolean |
isValid()
Returns true if all of the individual components of the duration are nonnegative. |
Method Detail |
public boolean isImmutable()
public int getSign()
public int getYear()
public int getMonth()
public int getDay()
public int getHour()
public int getMinute()
public int getSecond()
public BigDecimal getFraction()
public boolean isValid()
public int compareToGDuration(GDurationSpecification duration)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |