public class TimeRange extends Object implements Serializable, Cloneable
The time range.
| Constructor and Description |
|---|
TimeRange() |
| Modifier and Type | Method and Description |
|---|---|
TimeRange |
clone() |
boolean |
equals(Object obj) |
Date |
getFromInclusive()
The start time, in the format 2016-12-16T13:50Z.
|
Date |
getToExclusive()
The end time, in the format 2016-12-16T15:50Z.
|
int |
hashCode() |
void |
setFromInclusive(Date fromInclusive)
The start time, in the format 2016-12-16T13:50Z.
|
void |
setToExclusive(Date toExclusive)
The end time, in the format 2016-12-16T15:50Z.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TimeRange |
withFromInclusive(Date fromInclusive)
The start time, in the format 2016-12-16T13:50Z.
|
TimeRange |
withToExclusive(Date toExclusive)
The end time, in the format 2016-12-16T15:50Z.
|
public void setFromInclusive(Date fromInclusive)
The start time, in the format 2016-12-16T13:50Z.
fromInclusive - The start time, in the format 2016-12-16T13:50Z.public Date getFromInclusive()
The start time, in the format 2016-12-16T13:50Z.
public TimeRange withFromInclusive(Date fromInclusive)
The start time, in the format 2016-12-16T13:50Z.
fromInclusive - The start time, in the format 2016-12-16T13:50Z.public void setToExclusive(Date toExclusive)
The end time, in the format 2016-12-16T15:50Z.
toExclusive - The end time, in the format 2016-12-16T15:50Z.public Date getToExclusive()
The end time, in the format 2016-12-16T15:50Z.
public TimeRange withToExclusive(Date toExclusive)
The end time, in the format 2016-12-16T15:50Z.
toExclusive - The end time, in the format 2016-12-16T15:50Z.public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.