|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiweekly.util.Period
public class Period
A period of time.
| Constructor Summary | |
|---|---|
Period(Date startDate,
Date endDate)
Creates a new time period. |
|
Period(Date startDate,
Duration duration)
Creates a new time period. |
|
Period(Period period)
Copies an existing time period. |
|
| Method Summary | |
|---|---|
Duration |
getDuration()
Gets the length of time after the start date. |
Date |
getEndDate()
Gets the end date. |
Date |
getStartDate()
Gets the start date. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Period(Date startDate,
Date endDate)
startDate - the start dateendDate - the end date
public Period(Date startDate,
Duration duration)
startDate - the start dateduration - the length of time after the start datepublic Period(Period period)
period - the period to copy| Method Detail |
|---|
public Date getStartDate()
public Date getEndDate()
public Duration getDuration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||