SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.time
Class TimeInterval

java.lang.Object
  extended by com.numericalmethod.suanshu.interval.Interval<ComparableDateTime>
      extended by com.numericalmethod.suanshu.time.TimeInterval

public class TimeInterval
extends Interval<ComparableDateTime>

This class represents a time interval.

This class is immutable.


Field Summary
 
Fields inherited from class com.numericalmethod.suanshu.interval.Interval
begin, end
 
Constructor Summary
TimeInterval(ComparableDateTime begin, ComparableDateTime end)
          Construct a time interval from two time points.
TimeInterval(org.joda.time.DateTime begin, org.joda.time.DateTime end)
          Construct a time interval from two time points.
 
Method Summary
 
Methods inherited from class com.numericalmethod.suanshu.interval.Interval
equals, hashCode, is, relations, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeInterval

public TimeInterval(ComparableDateTime begin,
                    ComparableDateTime end)
Construct a time interval from two time points.

Parameters:
begin - the beginning time
end - the ending time

TimeInterval

public TimeInterval(org.joda.time.DateTime begin,
                    org.joda.time.DateTime end)
Construct a time interval from two time points.

Parameters:
begin - the beginning time
end - the ending time

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.