Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
endTime |
protected java.util.Date |
startTime |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
TimeRange |
build()
Builds an instance of
TimeRange configured with this
builder's values |
TimeRange.Builder |
withEndTime(java.util.Date endTime)
Set value for optional field.
|
TimeRange.Builder |
withStartTime(java.util.Date startTime)
Set value for optional field.
|
public TimeRange.Builder withStartTime(java.util.Date startTime)
startTime
- Optional starting time (inclusive).public TimeRange.Builder withEndTime(java.util.Date endTime)
endTime
- Optional ending time (exclusive).