public final class DateRange extends Object
Constructor and Description |
---|
DateRange() |
Modifier and Type | Method and Description |
---|---|
Date |
getEndDate()
Returns the end date.
|
Date |
getStartDate()
Returns the start date.
|
boolean |
isInDateRange(Date date)
Checks whether the date is in date range.
|
void |
setEndDate(Date endDate)
Specifies the end date.
|
void |
setStartDate(Date startDate)
Specifies the start date.
|
public boolean isInDateRange(Date date)
date
- the dateDate
is in date rangepublic void setStartDate(Date startDate)
public void setEndDate(Date endDate)
public Date getStartDate()
public Date getEndDate()