| java.lang.Object org.cougaar.util.MutableTimeSpan
All known Subclasses: org.cougaar.servicediscovery.util.LineageTimeSpan,
Method Summary | |
public static String | dateString(Date date) | public boolean | equals(Object object) | public long | getEndTime() The first point in time after start to be considered
not part of the interval. | public long | getStartTime() The first point in time to be considered part of the
interval. | public int | hashCode() | public void | setTimeSpan(long startTime, long endTime) setTimeSpan - sets the start and end time of the time span. | public String | toString() |
MutableTimeSpan | public MutableTimeSpan()(Code) | | Constructor - startTime initialized to TimeSpan.MIN_VALUE, endTime
initialized to TimeSpan.MAX_VALUE
|
equals | public boolean equals(Object object)(Code) | | equals - performs field by field comparison
Parameters: object - Object to compare boolean if 'same' |
getEndTime | public long getEndTime()(Code) | | The first point in time after start to be considered
not part of the interval.
MAX_VALUE IFF unbounded. |
getStartTime | public long getStartTime()(Code) | | The first point in time to be considered part of the
interval.
MIN_VALUE IFF unbounded. |
hashCode | public int hashCode()(Code) | | |
setTimeSpan | public void setTimeSpan(long startTime, long endTime)(Code) | | setTimeSpan - sets the start and end time of the time span.
Expected to enforce that startTime < endTime
throws: IllegalArgumentException - if startTime >= endTime |
|
|