| Package | Description |
|---|---|
| net.time4j.range |
Interval support.
|
| Modifier and Type | Class and Description |
|---|---|
class |
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 Type | Class and Description |
|---|---|
class |
CalendarMonth
Represents the month of a gregorian calendar year as interval
(like from 1st of January until end of January).
|
class |
CalendarPeriod<T>
Represents a closed interval between two incomplete calendar dates like months, weeks, quarters or years.
|
class |
CalendarQuarter
Represents the quarter of a gregorian calendar year as interval
(like from 1st of January until end of March).
|
class |
CalendarWeek
Represents the calendar week starting on Monday according to ISO-8601-paper.
|
class |
CalendarYear
Represents a full gregorian calendar year as interval from 1st of January until end of December.
|
class |
ClockInterval
Defines a finite wall time interval on the local timeline.
|
class |
DateInterval
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 |
MomentInterval
Defines a moment interval on global timeline.
|
class |
SimpleInterval<T>
Generic interval class suitable for any type of timepoints on a timeline.
|
class |
TimestampInterval
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 Type | Method and Description |
|---|---|
static <T,I extends ChronoInterval<T>> |
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.onClockAxis(Collection<I> intervals)
Creates an interval tree on the clock axis filled with given clock intervals.
|
static <I extends ChronoInterval<PlainDate>> |
IntervalTree.onDateAxis(Collection<I> intervals)
Creates an interval tree on the date axis filled with given date intervals.
|
static <I extends ChronoInterval<Moment>> |
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.onTimestampAxis(Collection<I> intervals)
Creates an interval tree on the timestamp axis filled with given timestamp intervals.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoInterval<T> |
IntervalCollection.getRange()
Yields the full min-max-range of this instance.
|
| Modifier and Type | Method and Description |
|---|---|
static Comparator<ChronoInterval<PlainTimestamp>> |
TimestampInterval.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<PlainDate>> |
DateInterval.comparator()
Defines a comparator which sorts intervals first
by start boundary and then by length.
|
static Comparator<ChronoInterval<PlainTime>> |
ClockInterval.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.
|
List<ChronoInterval<T>> |
IntervalCollection.getIntervals()
Returns all appended intervals.
|
List<ChronoInterval<PlainTime>> |
DayPartitionRule.getPartitions(PlainDate date)
Obtains the partitions for given date if defined.
|
Iterator<ChronoInterval<T>> |
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 Type | Method and Description |
|---|---|
boolean |
FixedCalendarInterval.abuts(ChronoInterval<PlainDate> other) |
boolean |
ValueInterval.abuts(ChronoInterval<T> other) |
boolean |
SimpleInterval.abuts(ChronoInterval<T> 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 |
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 |
CalendarPeriod.abuts(ChronoInterval<T> other) |
boolean |
FixedCalendarInterval.contains(ChronoInterval<PlainDate> other) |
boolean |
ValueInterval.contains(ChronoInterval<T> other) |
boolean |
SimpleInterval.contains(ChronoInterval<T> other) |
boolean |
IsoInterval.contains(ChronoInterval<T> other)
Does this interval contain the other one?
|
boolean |
IntervalTree.contains(ChronoInterval<T> interval)
Queries if given interval is stored in this tree.
|
boolean |
IntervalCollection.contains(ChronoInterval<T> interval)
Queries if given interval is stored in this collection.
|
boolean |
ChronoInterval.contains(ChronoInterval<T> other)
Does this interval contain the other one?
|
boolean |
CalendarPeriod.contains(ChronoInterval<T> other) |
boolean |
BracketPolicy.display(ChronoInterval<?> interval)
Decides if to display the boundaries of given interval.
|
Optional<SimpleInterval<T>> |
SimpleInterval.findIntersection(ChronoInterval<T> other)
Obtains the intersection of this interval and other one if present.
|
Optional<I> |
IsoInterval.findIntersection(ChronoInterval<T> other)
Obtains the intersection of this interval and other one if present.
|
Optional<CalendarPeriod<T>> |
CalendarPeriod.findIntersection(ChronoInterval<T> other)
Obtains the intersection of this interval and other one if present.
|
List<I> |
IntervalTree.findIntersections(ChronoInterval<T> interval)
Obtains a list of all stored intervals which intersect given search interval.
|
static MomentInterval |
MomentInterval.from(ChronoInterval<Moment> interval)
Converts an arbitrary moment 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 ClockInterval |
ClockInterval.from(ChronoInterval<PlainTime> interval)
Converts an arbitrary clock 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.
|
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.intersects(ChronoInterval<T> other)
Queries if this interval intersects the other one such that there is at least one common time point.
|
boolean |
IsoInterval.isAfter(ChronoInterval<T> other)
Is this interval after the other one?
|
default boolean |
ChronoInterval.isAfter(ChronoInterval<T> other)
Is this interval after the other one?
|
boolean |
FixedCalendarInterval.isBefore(ChronoInterval<PlainDate> other) |
boolean |
ValueInterval.isBefore(ChronoInterval<T> other) |
boolean |
SimpleInterval.isBefore(ChronoInterval<T> other) |
boolean |
IsoInterval.isBefore(ChronoInterval<T> other)
Is this interval before the other one?
|
boolean |
ChronoInterval.isBefore(ChronoInterval<T> other)
Is this interval before the other one?
|
boolean |
CalendarPeriod.isBefore(ChronoInterval<T> other) |
IntervalCollection<T> |
IntervalCollection.minus(ChronoInterval<T> interval)
Subtracts all timepoints of given interval from this interval collection.
|
IntervalCollection<T> |
IntervalCollection.plus(ChronoInterval<T> interval)
Adds the given interval to this interval collection.
|
IntervalCollection<T> |
IntervalCollection.withComplement(ChronoInterval<T> timeWindow)
Determines the complement of this interval collection within
given range.
|
IntervalCollection<T> |
IntervalCollection.withTimeWindow(ChronoInterval<T> timeWindow)
Determines a filtered version of this interval collection within
given range.
|
| Modifier and Type | Method and Description |
|---|---|
<R> R |
IsoInterval.get(ChronoFunction<ChronoInterval<T>,R> function)
Lets given query evaluate this interval.
|
IntervalCollection<T> |
IntervalCollection.minus(Collection<? extends ChronoInterval<T>> intervals)
Subtracts all timepoints of given intervals from this interval
collection.
|
IntervalCollection<T> |
IntervalCollection.plus(Collection<? extends ChronoInterval<T>> intervals)
Adds the given intervals to this interval collection.
|
Copyright © 2014–2021. All rights reserved.