public class AbsoluteDateIntervalsList extends TreeSet<AbsoluteDateInterval>
This class represents a list of objects AbsoluteDateInterval.
It extends a TreeSet of AbsoluteDateInterval instances ; as the AbsoluteDateInterval objects
implement the ComparableInterval class, the list is an ordered collection of time intervals.
AbsoluteDateInterval,
TreeSet,
Serialized Form| Constructor and Description |
|---|
AbsoluteDateIntervalsList() |
| Modifier and Type | Method and Description |
|---|---|
AbsoluteDateIntervalsList |
getComplementaryIntervals()
Gets the list of complementary intervals of the given list of intervals.
|
AbsoluteDateInterval |
getInclusiveInterval()
Gets the shortest interval containing all the intervals belonging to the list.
|
AbsoluteDateIntervalsList |
getIntersectionWith(AbsoluteDateInterval interval)
Returns the intersection between an interval and all the intervals of the list.
|
AbsoluteDateIntervalsList |
getIntervalsContainingDate(AbsoluteDate date)
Gets the
AbsoluteDateIntervalsList containing the specified date. |
AbsoluteDateIntervalsList |
getMergedIntervals()
Merges the intervals of the list that overlap and returns the list of merged intervals.
|
boolean |
includes(AbsoluteDateInterval interval)
Returns true if the provided interval is included in one of the intervals of the list.
|
boolean |
overlaps(AbsoluteDateInterval interval)
Returns true if the provided interval overlaps one of the intervals of the list.
|
add, addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSetequals, hashCode, removeAllcontainsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, removeAll, retainAll, toArray, toArrayparallelStream, removeIf, streampublic AbsoluteDateIntervalsList getIntervalsContainingDate(AbsoluteDate date)
AbsoluteDateIntervalsList containing the specified date.
The list can contain zero, one or more AbsoluteDateInterval.date - the date included in the time intervalspublic AbsoluteDateInterval getInclusiveInterval()
AbsoluteDateInterval including all the intervals of the listpublic AbsoluteDateIntervalsList getMergedIntervals()
The list returned should not contain any overlapping intervals.
public AbsoluteDateIntervalsList getIntersectionWith(AbsoluteDateInterval interval)
The list returned can be empty if the provided interval does not intersects any interval of the list.
interval - the intervalpublic AbsoluteDateIntervalsList getComplementaryIntervals()
AbsoluteDateIntervalsList including all the complementary intervalspublic boolean overlaps(AbsoluteDateInterval interval)
interval - the intervalpublic boolean includes(AbsoluteDateInterval interval)
interval - the intervalCopyright © 2025 CNES. All rights reserved.