org.epics.pvmanager.util
Class TimeInterval

java.lang.Object
  extended by org.epics.pvmanager.util.TimeInterval

Deprecated. This class is being retired in favor of org.epics.util.time.TimeInterval

@Deprecated
public class TimeInterval
extends java.lang.Object

A period of time that spans two instances (included) at the nanosecond precision.

Author:
carcassi

Method Summary
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.
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

contains

public boolean contains(TimeStamp instant)
Deprecated. 
True if the given time stamp is inside the interval.

Parameters:
instant - a time stamp
Returns:
true if inside the interval

between

public static TimeInterval between(TimeStamp start,
                                   TimeStamp end)
Deprecated. 
Returns the interval between the given timestamps.

Parameters:
start - the beginning of the interval
end - the end of the interval
Returns:
a new interval

minus

public TimeInterval minus(TimeDuration duration)
Deprecated. 
Returns a new interval shifted backward in time by the given duration.

Parameters:
duration - a time duration
Returns:
the new shifted interval

getStart

public TimeStamp getStart()
Deprecated. 
Initial value of the interval.

Returns:
the initial instant

getEnd

public TimeStamp getEnd()
Deprecated. 
Final value of the interval.

Returns:
the final instant

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object