|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GDurationSpecification
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. |
java.math.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 |
---|
boolean isImmutable()
int getSign()
int getYear()
int getMonth()
int getDay()
int getHour()
int getMinute()
int getSecond()
java.math.BigDecimal getFraction()
boolean isValid()
int compareToGDuration(GDurationSpecification duration)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |