|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiweekly.util.Period
public final 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 | |
|---|---|
boolean |
equals(Object obj)
|
Duration |
getDuration()
Gets the length of time after the start date. |
Date |
getEndDate()
Gets the end date. |
Date |
getStartDate()
Gets the start date. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, 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()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||