org.epics.pvmanager
Class TimeInterval

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

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)
          Returns the interval between the given timestamps.
 boolean contains(TimeStamp instant)
          True if the given time stamp is inside the interval.
 java.lang.String toString()
           
 
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)
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)
Returns the interval between the given timestamps.

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

toString

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


Copyright © 2010. All Rights Reserved.