public class TimeRange extends Object implements Serializable, Cloneable
Information about a time range.
| Constructor and Description |
|---|
TimeRange() |
| Modifier and Type | Method and Description |
|---|---|
TimeRange |
clone() |
boolean |
equals(Object obj) |
Date |
getEnd()
The end time of the time range.
|
Date |
getStart()
The start time of the time range.
|
int |
hashCode() |
void |
setEnd(Date end)
The end time of the time range.
|
void |
setStart(Date start)
The start time of the time range.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TimeRange |
withEnd(Date end)
The end time of the time range.
|
TimeRange |
withStart(Date start)
The start time of the time range.
|
public void setStart(Date start)
The start time of the time range.
start - The start time of the time range. public Date getStart()
The start time of the time range.
public TimeRange withStart(Date start)
The start time of the time range.
start - The start time of the time range. public void setEnd(Date end)
The end time of the time range.
end - The end time of the time range. public Date getEnd()
The end time of the time range.
public TimeRange withEnd(Date end)
The end time of the time range.
end - The end time of the time range. public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.