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 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 void setStart(Date start)
The time range's start time.
start
- The time range's start time. public Date getStart()
The time range's start time.
public TimeRange withStart(Date start)
The time range's start time.
start
- The time range's start time. public void setEnd(Date end)
The time range's end time.
end
- The time range's end time. public Date getEnd()
The time range's end time.
public TimeRange withEnd(Date end)
The time range's end time.
end
- The time range's end time. public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.