|
Joda Time API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Readable interface for a Time period. This interface expresses a time period as its duration in milliseconds.
ReadableTimePeriod| Method Summary | |
Instant |
getEndInstant()
Gets the end of this time period as an Instant. |
long |
getMillis()
Gets the length of this time period in milliseconds. |
Instant |
getStartInstant()
Gets the start of this time period as an Instant. |
boolean |
isLongerThan(java.lang.Object other)
Is the period longer than the period passd in. |
boolean |
isShorterThan(java.lang.Object other)
Is the period shorter than the period passed in. |
TimePeriod |
toTimePeriod()
Get the value as a simple immutable object. |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Method Detail |
public long getMillis()
public Instant getStartInstant()
public Instant getEndInstant()
public TimePeriod toTimePeriod()
public boolean isLongerThan(java.lang.Object other)
other - Another time period to compare to. Accepts periods
in the form of another ReadablePeriod, an ISO formated period string
or a Long object contain the number of milliseconds in the period.
public boolean isShorterThan(java.lang.Object other)
other - Another time period to compare to. Accepts periods
in the form of another ReadablePeriod, an ISO formated period string
or a Long object contain the number of milliseconds in the period.
|
Joda Time API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||