| Modifier and Type | Field and Description |
|---|---|
static MomentInterval |
MomentInterval.ALWAYS
Constant for a moment interval from infinite past to infinite future.
|
| Modifier and Type | Method and Description |
|---|---|
MomentInterval |
TimestampInterval.at(ZonalOffset offset)
Combines this local timestamp interval with given timezone offset
to a global UTC-interval.
|
MomentInterval |
TimestampInterval.atUTC()
Combines this local timestamp interval with the timezone offset
UTC+00:00 to a global UTC-interval.
|
static MomentInterval |
MomentInterval.between(Instant start,
Instant end)
Creates a finite half-open interval between given time points.
|
static MomentInterval |
MomentInterval.between(Moment start,
Moment end)
Creates a finite half-open interval between given time points.
|
static MomentInterval |
MomentInterval.from(ChronoInterval<Moment> interval)
Converts an arbitrary moment interval to an interval of this type.
|
MomentInterval |
TimestampInterval.in(Timezone tz)
Deprecated.
Will become an internal private method starting with v5.0, use
TimestampInterval.inTimezone(TZID) instead |
MomentInterval |
DateInterval.in(Timezone tz)
Deprecated.
Use
DateInterval.inTimezone(TZID) instead |
MomentInterval |
TimestampInterval.inStdTimezone()
Combines this local timestamp interval with the system timezone
to a global UTC-interval.
|
MomentInterval |
TimestampInterval.inTimezone(TZID tzid)
Combines this local timestamp interval with given timezone
to a global UTC-interval.
|
MomentInterval |
DateInterval.inTimezone(TZID tzid)
Converts this instance to a moment interval with date boundaries mapped
to the midnight cycle in given time zone.
|
MomentInterval |
MomentInterval.move(long amount,
SI unit)
Moves this interval along the UTC-axis by given SI-units.
|
MomentInterval |
MomentInterval.move(long amount,
TimeUnit unit)
Moves this interval along the POSIX-axis by given time units.
|
static MomentInterval |
MomentInterval.parse(CharSequence text,
ChronoParser<Moment> parser,
BracketPolicy policy)
Interpretes given text as interval.
|
static MomentInterval |
MomentInterval.parse(CharSequence text,
ChronoParser<Moment> parser,
BracketPolicy policy,
ParseLog status)
Deprecated.
Use one of other parse methods accepting a bracket policy instead
|
static MomentInterval |
MomentInterval.parse(CharSequence text,
ChronoParser<Moment> startFormat,
char separator,
ChronoParser<Moment> endFormat,
BracketPolicy policy,
ParseLog status)
Interpretes given text as interval.
|
static MomentInterval |
MomentInterval.parse(String text,
ChronoParser<Moment> parser)
Interpretes given text as interval using a localized interval pattern.
|
static MomentInterval |
MomentInterval.parse(String text,
ChronoParser<Moment> parser,
String intervalPattern)
Interpretes given text as interval using given interval pattern.
|
static MomentInterval |
MomentInterval.parseISO(String text)
Interpretes given ISO-conforming text as interval.
|
static MomentInterval |
MomentInterval.since(Instant start)
Creates an infinite half-open interval since given start.
|
static MomentInterval |
MomentInterval.since(Moment start)
Creates an infinite half-open interval since given start.
|
static MomentInterval |
MomentInterval.surrounding(Instant instant,
Duration duration,
double alignment)
Creates an interval surrounding given instant.
|
static MomentInterval |
MomentInterval.surrounding(Instant instant,
MachineTime<TimeUnit> duration,
double alignment)
|
static MomentInterval |
MomentInterval.surrounding(Moment moment,
MachineTime<?> duration,
double alignment)
Creates an interval surrounding given moment.
|
static MomentInterval |
MomentInterval.until(Instant end)
Creates an infinite open interval until given end.
|
static MomentInterval |
MomentInterval.until(Moment end)
Creates an infinite open interval until given end.
|
| Modifier and Type | Method and Description |
|---|---|
static IsoRecurrence<MomentInterval> |
IsoRecurrence.of(int count,
Duration<?> duration,
Moment end,
ZonalOffset offset)
Creates a recurrent backward sequence of moment intervals having given duration.
|
static IsoRecurrence<MomentInterval> |
IsoRecurrence.of(int count,
Moment start,
Duration<?> duration,
ZonalOffset offset)
Creates a recurrent sequence of moment intervals having given duration.
|
static IsoRecurrence<MomentInterval> |
IsoRecurrence.of(int count,
Moment start,
Moment end,
ZonalOffset offset)
Creates a recurrent sequence of moment intervals having the duration
of first timestamp interval in years, months, days, hours, minutes, seconds and nanoseconds.
|
static IsoRecurrence<MomentInterval> |
IsoRecurrence.parseMomentIntervals(String iso)
Parses a string like "R5/2016-04-01T10:45Z/30T23:59"
to a sequence of recurrent moment intervals.
|
Stream<MomentInterval> |
DateInterval.streamPartitioned(DayPartitionRule rule,
TZID tzid)
Creates a partitioning stream of moment intervals where every day of this interval is partitioned
according to given partitioning rule.
|
| Modifier and Type | Method and Description |
|---|---|
static IntervalRelation |
IntervalRelation.between(MomentInterval a,
MomentInterval b)
Determines the relation between given intervals.
|
boolean |
IntervalRelation.matches(MomentInterval a,
MomentInterval b)
Does this relation match the relation between given intervals?
|
Copyright © 2014–2018. All rights reserved.