com.sun.n1.sps.model.util
Interface TimeInterval


public interface TimeInterval

A time interval, representing a length of time.


Method Summary
 int getType()
          Returns the time unit type in which the time interval is expressed.
 double getValue()
          Returns the length of the time interval.
 boolean isIndefinite()
          Checks whether the receiver represents the indefinite time interval.
 

Method Detail

isIndefinite

boolean isIndefinite()
Checks whether the receiver represents the indefinite time interval.

Returns:
True if-and-only-if the indefinite time interval is represented.

getValue

double getValue()
Returns the length of the time interval.

Returns:
The length of the time interval.

getType

int getType()
Returns the time unit type in which the time interval is expressed.

Returns:
The time unit type.