Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
public Period(Date startDate, Date endDate)
startDate
- the start dateendDate
- the end datepublic Period(Date startDate, Duration duration)
startDate
- the start dateduration
- the length of time after the start datepublic Date getStartDate()
public Date getEndDate()
public Duration getDuration()
Copyright © 2013-2015 Michael Angstadt. All Rights Reserved.