public class TimeRange
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about a time range.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
end
The end time of the time range.
|
private java.util.Date |
start
The start time of the time range.
|
Constructor and Description |
---|
TimeRange() |
Modifier and Type | Method and Description |
---|---|
TimeRange |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getEnd()
The end time of the time range.
|
java.util.Date |
getStart()
The start time of the time range.
|
int |
hashCode() |
void |
setEnd(java.util.Date end)
The end time of the time range.
|
void |
setStart(java.util.Date start)
The start time of the time range.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TimeRange |
withEnd(java.util.Date end)
The end time of the time range.
|
TimeRange |
withStart(java.util.Date start)
The start time of the time range.
|
private java.util.Date start
The start time of the time range.
private java.util.Date end
The end time of the time range.
public void setStart(java.util.Date start)
The start time of the time range.
start
- The start time of the time range. public java.util.Date getStart()
The start time of the time range.
public TimeRange withStart(java.util.Date start)
The start time of the time range.
start
- The start time of the time range. public void setEnd(java.util.Date end)
The end time of the time range.
end
- The end time of the time range. public java.util.Date getEnd()
The end time of the time range.
public TimeRange withEnd(java.util.Date end)
The end time of the time range.
end
- The end time of the time range. public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TimeRange clone()
clone
in class java.lang.Object