public class TimeRange extends Object implements Serializable
Information about a time range.
| Constructor and Description |
|---|
TimeRange() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Date |
getEnd()
The time range's end time.
|
Date |
getStart()
The time range's start time.
|
int |
hashCode() |
void |
setEnd(Date end)
The time range's end time.
|
void |
setStart(Date start)
The time range's start time.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TimeRange |
withEnd(Date end)
The time range's end time.
|
TimeRange |
withStart(Date start)
The time range's start time.
|
public Date getStart()
public void setStart(Date start)
start - The time range's start time. public TimeRange withStart(Date start)
Returns a reference to this object so that method calls can be chained together.
start - The time range's start time. public Date getEnd()
public void setEnd(Date end)
end - The time range's end time. public TimeRange withEnd(Date end)
Returns a reference to this object so that method calls can be chained together.
end - The time range's end time. public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.