Modifier and Type | Field and Description |
---|---|
protected Date |
endDate |
protected Date |
startDate |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
DateRange |
build()
Builds an instance of
DateRange configured with this
builder's values |
DateRange.Builder |
withEndDate(Date endDate)
Set value for optional field.
|
DateRange.Builder |
withStartDate(Date startDate)
Set value for optional field.
|
public DateRange.Builder withStartDate(Date startDate)
startDate
- Optional starting date (inclusive).public DateRange.Builder withEndDate(Date endDate)
endDate
- Optional ending date (exclusive).