TimeInterval
@Deprecated public class TimeInterval extends Object
Modifier and Type | Method and Description |
---|---|
static TimeInterval |
between(TimeStamp start,
TimeStamp end)
Deprecated.
Returns the interval between the given timestamps.
|
boolean |
contains(TimeStamp instant)
Deprecated.
True if the given time stamp is inside the interval.
|
TimeStamp |
getEnd()
Deprecated.
Final value of the interval.
|
TimeStamp |
getStart()
Deprecated.
Initial value of the interval.
|
TimeInterval |
minus(TimeDuration duration)
Deprecated.
Returns a new interval shifted backward in time by the given duration.
|
String |
toString()
Deprecated.
|
public boolean contains(TimeStamp instant)
instant
- a time stamppublic static TimeInterval between(TimeStamp start, TimeStamp end)
start
- the beginning of the intervalend
- the end of the intervalpublic TimeInterval minus(TimeDuration duration)
duration
- a time durationpublic TimeStamp getStart()
public TimeStamp getEnd()
Copyright © 2012. All Rights Reserved.