Uses of Interface
net.time4j.range.ChronoInterval
-
Uses of ChronoInterval in net.time4j.range
Modifier and TypeClassDescriptionclass
IntervalTree<T,I extends ChronoInterval<T>>
Represents an augmented interval tree holding intervals for easy and quick search.class
ValueInterval<T,I extends ChronoInterval<T>,V>
Represents a temporal interval with an associated value.Modifier and TypeClassDescriptionclass
Represents the month of a gregorian calendar year as interval (like from 1st of January until end of January).class
Represents a closed interval between two incomplete calendar dates like months, weeks, quarters or years.class
Represents the quarter of a gregorian calendar year as interval (like from 1st of January until end of March).class
Represents the calendar week starting on Monday according to ISO-8601-paper.class
Represents a full gregorian calendar year as interval from 1st of January until end of December.class
Defines a finite wall time interval on the local timeline.class
Defines a date interval.class
FixedCalendarInterval<T extends FixedCalendarInterval<T>>
Represents a fixed calendar interval.class
IsoInterval<T extends Temporal<? super T>,I extends IsoInterval<T,I>>
Represents an abstract temporal interval on a timeline for ISO-8601-types.class
Defines a moment interval on global timeline.class
Generic interval class suitable for any type of timepoints on a timeline.class
Defines a timestamp interval on local timeline.class
ValueInterval<T,I extends ChronoInterval<T>,V>
Represents a temporal interval with an associated value.Modifier and TypeMethodDescriptionstatic <T, I extends ChronoInterval<T>>
IntervalTree<T,I>IntervalTree.on(TimeLine<T> timeLine, Collection<I> intervals)
Creates an interval tree on a timeline filled with given intervals.static <I extends ChronoInterval<PlainTime>>
IntervalTree<PlainTime,I>IntervalTree.onClockAxis(Collection<I> intervals)
Creates an interval tree on the clock axis filled with given clock intervals.static <I extends ChronoInterval<PlainDate>>
IntervalTree<PlainDate,I>IntervalTree.onDateAxis(Collection<I> intervals)
Creates an interval tree on the date axis filled with given date intervals.static <I extends ChronoInterval<Moment>>
IntervalTree<Moment,I>IntervalTree.onMomentAxis(Collection<I> intervals)
Creates an interval tree on the moment axis (UTC) filled with given moment intervals.static <I extends ChronoInterval<PlainTimestamp>>
IntervalTree<PlainTimestamp,I>IntervalTree.onTimestampAxis(Collection<I> intervals)
Creates an interval tree on the timestamp axis filled with given timestamp intervals.Modifier and TypeMethodDescriptionIntervalCollection.getRange()
Yields the full min-max-range of this instance.Modifier and TypeMethodDescriptionstatic Comparator<ChronoInterval<PlainTime>>
ClockInterval.comparator()
Defines a comparator which sorts intervals first by start boundary and then by length.static Comparator<ChronoInterval<PlainDate>>
DateInterval.comparator()
Defines a comparator which sorts intervals first by start boundary and then by length.static Comparator<ChronoInterval<Moment>>
MomentInterval.comparator()
Defines a comparator which sorts intervals first by start boundary and then by length.static Comparator<ChronoInterval<PlainTimestamp>>
TimestampInterval.comparator()
Defines a comparator which sorts intervals first by start boundary and then by length.default ChronoFunction<ChronoInterval<PlainDate>,Integer>
HolidayModel.countOfBusinessDays()
Queries the count of business days in an arbitrary date interval.default ChronoFunction<ChronoInterval<PlainDate>,Integer>
HolidayModel.countOfHolidays()
Queries the count of non-business days in an arbitrary date interval.default ChronoFunction<ChronoInterval<PlainDate>,PlainDate>
HolidayModel.firstBusinessDay()
Queries the first business day in an arbitrary date interval.IntervalCollection.getIntervals()
Returns all appended intervals.DayPartitionRule.getPartitions(PlainDate date)
Obtains the partitions for given date if defined.IntervalCollection.iterator()
Obtains an interval iterator.default ChronoFunction<ChronoInterval<PlainDate>,PlainDate>
HolidayModel.lastBusinessDay()
Queries the last business day in an arbitrary date interval.Modifier and TypeMethodDescriptionboolean
CalendarPeriod.abuts(ChronoInterval<T> other)
boolean
ChronoInterval.abuts(ChronoInterval<T> other)
Queries if this interval abuts the other one such that there is neither any overlap nor any gap between.boolean
FixedCalendarInterval.abuts(ChronoInterval<PlainDate> other)
boolean
IsoInterval.abuts(ChronoInterval<T> other)
Queries if this interval abuts the other one such that there is neither any overlap nor any gap between.boolean
SimpleInterval.abuts(ChronoInterval<T> other)
boolean
ValueInterval.abuts(ChronoInterval<T> other)
boolean
CalendarPeriod.contains(ChronoInterval<T> other)
boolean
ChronoInterval.contains(ChronoInterval<T> other)
Does this interval contain the other one?boolean
FixedCalendarInterval.contains(ChronoInterval<PlainDate> other)
boolean
IntervalCollection.contains(ChronoInterval<T> interval)
Queries if given interval is stored in this collection.boolean
IntervalTree.contains(ChronoInterval<T> interval)
Queries if given interval is stored in this tree.boolean
IsoInterval.contains(ChronoInterval<T> other)
Does this interval contain the other one?boolean
SimpleInterval.contains(ChronoInterval<T> other)
boolean
ValueInterval.contains(ChronoInterval<T> other)
boolean
BracketPolicy.display(ChronoInterval<?> interval)
Decides if to display the boundaries of given interval.CalendarPeriod.findIntersection(ChronoInterval<T> other)
Obtains the intersection of this interval and other one if present.IsoInterval.findIntersection(ChronoInterval<T> other)
Obtains the intersection of this interval and other one if present.SimpleInterval.findIntersection(ChronoInterval<T> other)
Obtains the intersection of this interval and other one if present.IntervalTree.findIntersections(ChronoInterval<T> interval)
Obtains a list of all stored intervals which intersect given search interval.static ClockInterval
ClockInterval.from(ChronoInterval<PlainTime> interval)
Converts an arbitrary clock interval to an interval of this type.static DateInterval
DateInterval.from(ChronoInterval<PlainDate> interval)
Converts an arbitrary date interval to an interval of this type.static MomentInterval
MomentInterval.from(ChronoInterval<Moment> interval)
Converts an arbitrary moment interval to an interval of this type.static TimestampInterval
TimestampInterval.from(ChronoInterval<PlainTimestamp> interval)
Converts an arbitrary timestamp interval to an interval of this type.default boolean
ChronoInterval.intersects(ChronoInterval<T> other)
Queries if this interval intersects the other one such that there is at least one common time point.boolean
IsoInterval.intersects(ChronoInterval<T> other)
Queries if this interval intersects the other one such that there is at least one common time point.default boolean
ChronoInterval.isAfter(ChronoInterval<T> other)
Is this interval after the other one?boolean
IsoInterval.isAfter(ChronoInterval<T> other)
Is this interval after the other one?boolean
CalendarPeriod.isBefore(ChronoInterval<T> other)
boolean
ChronoInterval.isBefore(ChronoInterval<T> other)
Is this interval before the other one?boolean
FixedCalendarInterval.isBefore(ChronoInterval<PlainDate> other)
boolean
IsoInterval.isBefore(ChronoInterval<T> other)
Is this interval before the other one?boolean
SimpleInterval.isBefore(ChronoInterval<T> other)
boolean
ValueInterval.isBefore(ChronoInterval<T> other)
IntervalCollection.minus(ChronoInterval<T> interval)
Subtracts all timepoints of given interval from this interval collection.IntervalCollection.plus(ChronoInterval<T> interval)
Adds the given interval to this interval collection.IntervalCollection.withComplement(ChronoInterval<T> timeWindow)
Determines the complement of this interval collection within given range.IntervalCollection.withTimeWindow(ChronoInterval<T> timeWindow)
Determines a filtered version of this interval collection within given range.Modifier and TypeMethodDescription<R> R
IsoInterval.get(ChronoFunction<ChronoInterval<T>,R> function)
Lets given query evaluate this interval.IntervalCollection.minus(Collection<? extends ChronoInterval<T>> intervals)
Subtracts all timepoints of given intervals from this interval collection.IntervalCollection.plus(Collection<? extends ChronoInterval<T>> intervals)
Adds the given intervals to this interval collection.