Duration
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final int | |
| protected final int | |
| protected final int | |
| protected final int | |
| protected final int | |
| protected final int | |
| protected final int |
| Access | Constructor and Description |
|---|---|
| protected | BaseDuration(final int years, final int months, final int days, final int hours, final int minutes, final int seconds, final int millis)
|
| protected | BaseDuration(final int days, final int hours, final int minutes, final int seconds, final int millis)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(BaseDuration
the object to be compared. otherDuration)Implements java. |
| public abstract Date | |
| public int | |
| public abstract BaseDuration. | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public Date | |
| public abstract long | |
| public String |
| days | back to summary |
|---|---|
| protected final int days | |
| hours | back to summary |
|---|---|
| protected final int hours | |
| millis | back to summary |
|---|---|
| protected final int millis | |
| minutes | back to summary |
|---|---|
| protected final int minutes | |
| months | back to summary |
|---|---|
| protected final int months | |
| seconds | back to summary |
|---|---|
| protected final int seconds | |
| years | back to summary |
|---|---|
| protected final int years | |
| BaseDuration | back to summary |
|---|---|
| protected BaseDuration(final int years, final int months, final int days, final int hours, final int minutes, final int seconds, final int millis) | |
| BaseDuration | back to summary |
|---|---|
| protected BaseDuration(final int days, final int hours, final int minutes, final int seconds, final int millis) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(BaseDuration otherDuration) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| getAgo | back to summary |
|---|---|
| public abstract Date getAgo() | |
| getDays | back to summary |
|---|---|
| public int getDays() | |
| getFrom | back to summary |
|---|---|
| public abstract BaseDuration. | |
| getHours | back to summary |
|---|---|
| public int getHours() | |
| getMillis | back to summary |
|---|---|
| public int getMillis() | |
| getMinutes | back to summary |
|---|---|
| public int getMinutes() | |
| getMonths | back to summary |
|---|---|
| public int getMonths() | |
| getSeconds | back to summary |
|---|---|
| public int getSeconds() | |
| getYears | back to summary |
|---|---|
| public int getYears() | |
| plus | back to summary |
|---|---|
| public Date plus(final Date date) | |
| toMilliseconds | back to summary |
|---|---|
| public abstract long toMilliseconds() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| Access | Constructor and Description |
|---|---|
| public |
| From | back to summary |
|---|---|
| public From() | |
| getNow | back to summary |
|---|---|
| public abstract Date getNow() | |
| getToday | back to summary |
|---|---|
| public Date getToday() | |