Package dev.nm.misc.datastructure.time
Class TimeIntervals
- java.lang.Object
-
- dev.nm.interval.Intervals<LocalDateTime>
-
- dev.nm.misc.datastructure.time.TimeIntervals
-
public class TimeIntervals extends Intervals<LocalDateTime>
This is a collection of time intervalsTimeInterval.- See Also:
TimeInterval
-
-
Constructor Summary
Constructors Constructor Description TimeIntervals()Construct an empty collection of time interval.TimeIntervals(Interval<LocalDateTime> interval)Construct a collection consisting of one time interval.TimeIntervals(Interval<LocalDateTime>... intervals)Construct a collection of time intervals.TimeIntervals(Intervals<LocalDateTime> that)Copy constructor.TimeIntervals(LocalDateTime begin, LocalDateTime end)Construct a collection consisting of one time interval.
-
-
-
Constructor Detail
-
TimeIntervals
public TimeIntervals()
Construct an empty collection of time interval.
-
TimeIntervals
public TimeIntervals(LocalDateTime begin, LocalDateTime end)
Construct a collection consisting of one time interval.- Parameters:
begin- the beginning timeend- the ending time
-
TimeIntervals
public TimeIntervals(Interval<LocalDateTime> interval)
Construct a collection consisting of one time interval.- Parameters:
interval- a time interval
-
TimeIntervals
public TimeIntervals(Interval<LocalDateTime>... intervals)
Construct a collection of time intervals.- Parameters:
intervals- time intervals
-
TimeIntervals
public TimeIntervals(Intervals<LocalDateTime> that)
Copy constructor.- Parameters:
that- a collection of time intervals
-
-