|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimeInterval
A continuous time interval.
Nested Class Summary | |
---|---|
static class |
TimeInterval.Unit
Time units. |
Method Summary | |
---|---|
double |
getInterval()
Returns the duration of this TimeInterval. |
TimeInterval.Unit |
getUnit()
Returns the time unit used by this TimeInterval object. |
TimeInterval |
ofUnits(TimeInterval.Unit unit)
Sets the time unit used by this TimeInterval object. |
void |
setInterval(double interval)
Sets the duration of this TimeInterval. |
void |
setUnits(TimeInterval.Unit unit)
Sets the time unit used by this TimeInterval object. |
TimeInterval |
withInterval(double interval)
Sets the duration of this TimeInterval. |
Method Detail |
---|
void setUnits(TimeInterval.Unit unit)
unit
- the time unit.void setInterval(double interval)
setUnits(Unit.HOUR); setInterval(5);
interval
- the duration.TimeInterval ofUnits(TimeInterval.Unit unit)
unit
- the time unit.
TimeInterval withInterval(double interval)
interval
- the interval.
TimeInterval.Unit getUnit()
double getInterval()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |