SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.time
Class TimeIntervals

java.lang.Object
  extended by com.numericalmethod.suanshu.interval.Intervals<org.joda.time.DateTime>
      extended by com.numericalmethod.suanshu.time.TimeIntervals

public class TimeIntervals
extends Intervals<org.joda.time.DateTime>

This is a collection of time intervals TimeInterval.

See Also:
TimeInterval

Constructor Summary
TimeIntervals()
          Construct an empty collection of time interval.
TimeIntervals(org.joda.time.DateTime begin, org.joda.time.DateTime end)
          Construct a collection consisting of one time interval.
TimeIntervals(Interval<org.joda.time.DateTime>... intervals)
          Construct a collection of time intervals.
TimeIntervals(Interval<org.joda.time.DateTime> interval)
          Construct a collection consisting of one time interval.
TimeIntervals(Intervals<org.joda.time.DateTime> that)
          Copy constructor.
 
Method Summary
 
Methods inherited from class com.numericalmethod.suanshu.interval.Intervals
add, add, equals, get, hashCode, size, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeIntervals

public TimeIntervals()
Construct an empty collection of time interval.


TimeIntervals

public TimeIntervals(org.joda.time.DateTime begin,
                     org.joda.time.DateTime end)
Construct a collection consisting of one time interval.

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

TimeIntervals

public TimeIntervals(Interval<org.joda.time.DateTime> interval)
Construct a collection consisting of one time interval.

Parameters:
interval - a time interval

TimeIntervals

public TimeIntervals(Interval<org.joda.time.DateTime>... intervals)
Construct a collection of time intervals.

Parameters:
intervals - time intervals

TimeIntervals

public TimeIntervals(Intervals<org.joda.time.DateTime> that)
Copy constructor.

Parameters:
that - a collection of time intervals

SuanShu, a Java numerical and statistical library

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