public class DateRange extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DateRange.Builder
Builder for
DateRange . |
Modifier and Type | Field and Description |
---|---|
protected Date |
endDate |
protected Date |
startDate |
Constructor and Description |
---|
DateRange()
Input arguments that can be provided for most reports.
|
DateRange(Date startDate,
Date endDate)
Input arguments that can be provided for most reports.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Date |
getEndDate()
Optional ending date (exclusive)
|
Date |
getStartDate()
Optional starting date (inclusive)
|
int |
hashCode() |
static DateRange.Builder |
newBuilder()
Returns a new builder for creating an instance of this class.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public DateRange(Date startDate, Date endDate)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
startDate
- Optional starting date (inclusive).endDate
- Optional ending date (exclusive).public DateRange()
The default values for unset fields will be used.
public Date getStartDate()
null
if not present.public Date getEndDate()
null
if not present.public static DateRange.Builder newBuilder()
public String toStringMultiline()
The returned String may contain newlines.