Uses of Class
net.time4j.range.DateInterval
-
Uses of DateInterval in net.time4j.range
Modifier and TypeFieldDescriptionstatic DateInterval
DateInterval.ALWAYS
Constant for a date interval from infinite past to infinite future.Modifier and TypeMethodDescriptionstatic DateInterval
Creates a closed interval including only given date.static DateInterval
Creates a closed interval including only given date.static DateInterval
Creates a closed interval between given dates.static DateInterval
Creates a closed interval between given dates.static DateInterval
DateInterval.emptyWithAnchor(LocalDate anchor)
Creates an empty interval with an anchor date.static DateInterval
DateInterval.emptyWithAnchor(PlainDate anchor)
Creates an empty interval with an anchor date.static DateInterval
DateInterval.from(ChronoInterval<PlainDate> interval)
Converts an arbitrary date interval to an interval of this type.DateInterval.move(long amount, IsoDateUnit unit)
Moves this interval along the time axis by given units.static DateInterval
DateInterval.ofCurrentWeek(TimeSource clock, TZID tzid, Weekday firstDay)
Obtains the current calendar week based on given clock, time zone and first day of week.static DateInterval
DateInterval.parse(CharSequence text, ChronoParser<PlainDate> startFormat, char separator, ChronoParser<PlainDate> endFormat, BracketPolicy policy, ParseLog status)
Interpretes given text as interval.static DateInterval
DateInterval.parse(CharSequence text, ChronoParser<PlainDate> parser, BracketPolicy policy)
Interpretes given text as interval.static DateInterval
DateInterval.parse(String text, ChronoParser<PlainDate> parser)
Interpretes given text as interval using a localized interval pattern.static DateInterval
DateInterval.parse(String text, ChronoParser<PlainDate> parser, String intervalPattern)
Interpretes given text as interval using given interval pattern.static DateInterval
Interpretes given ISO-conforming text as interval.static DateInterval
Creates an infinite interval since given start date.static DateInterval
Creates an infinite interval since given start date.FixedCalendarInterval.toFlexInterval()
Converts this fixed interval to a date interval with flexible boundaries which can participate in any kind of interval boundary manipulations.static DateInterval
Creates an infinite interval until given end date.static DateInterval
Creates an infinite interval until given end date.Modifier and TypeMethodDescriptionstatic IsoRecurrence<DateInterval>
IsoRecurrence.of(int count, Duration<? extends IsoDateUnit> duration, PlainDate end)
Creates a recurrent backward sequence of date intervals having given duration.static IsoRecurrence<DateInterval>
IsoRecurrence.of(int count, PlainDate start, Duration<? extends IsoDateUnit> duration)
Creates a recurrent sequence of date intervals having given duration.static IsoRecurrence<DateInterval>
Creates a recurrent sequence of date intervals having the duration of first interval in years, months and days.static IsoRecurrence<DateInterval>
IsoRecurrence.parseDateIntervals(String iso)
Parses a string like "R5/2016-04-01/2016-04-30" or "R5/2016-04-01/P1M" to a sequence of recurrent date intervals.Modifier and TypeMethodDescriptionstatic IntervalRelation
IntervalRelation.between(DateInterval a, DateInterval b)
Determines the relation between given intervals.boolean
IntervalRelation.matches(DateInterval a, DateInterval b)
Does this relation match the relation between given intervals?