| Package | Description |
|---|---|
| net.time4j.range |
Interval support.
|
| Modifier and Type | Field and Description |
|---|---|
static DateInterval |
DateInterval.ALWAYS
Constant for a date interval from infinite past to infinite future.
|
| Modifier and Type | Method and Description |
|---|---|
static DateInterval |
DateInterval.atomic(LocalDate date)
Creates a closed interval including only given date.
|
static DateInterval |
DateInterval.atomic(PlainDate date)
Creates a closed interval including only given date.
|
static DateInterval |
DateInterval.between(LocalDate start,
LocalDate end)
Creates a closed interval between given dates.
|
static DateInterval |
DateInterval.between(PlainDate start,
PlainDate end)
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 |
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> parser,
BracketPolicy policy)
Interpretes given text as interval.
|
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(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 |
DateInterval.parseISO(String text)
Interpretes given ISO-conforming text as interval.
|
static DateInterval |
DateInterval.since(LocalDate start)
Creates an infinite interval since given start date.
|
static DateInterval |
DateInterval.since(PlainDate start)
Creates an infinite interval since given start date.
|
DateInterval |
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 |
DateInterval.until(LocalDate end)
Creates an infinite interval until given end date.
|
static DateInterval |
DateInterval.until(PlainDate end)
Creates an infinite interval until given end date.
|
| Modifier and Type | Method and Description |
|---|---|
static 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> |
IsoRecurrence.of(int count,
PlainDate start,
PlainDate end)
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 Type | Method and Description |
|---|---|
static 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?
|
Copyright © 2014–2021. All rights reserved.