Uses of Class
net.time4j.range.MomentInterval
-
Uses of MomentInterval in net.time4j.range
Modifier and TypeFieldDescriptionstatic MomentInterval
MomentInterval.ALWAYS
Constant for a moment interval from infinite past to infinite future.Modifier and TypeMethodDescriptionTimestampInterval.at(ZonalOffset offset)
Combines this local timestamp interval with given timezone offset to a global UTC-interval.TimestampInterval.atUTC()
Combines this local timestamp interval with the timezone offset UTC+00:00 to a global UTC-interval.static MomentInterval
Creates a finite half-open interval between given time points.static MomentInterval
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.TimestampInterval.inStdTimezone()
Combines this local timestamp interval with the system timezone to a global UTC-interval.DateInterval.inTimezone(TZID tzid)
Converts this instance to a moment interval with date boundaries mapped to the midnight cycle in given time zone.TimestampInterval.inTimezone(TZID tzid)
Combines this local timestamp interval with given timezone to a global UTC-interval.Moves this interval along the POSIX-axis by given time units.Moves this interval along the UTC-axis by given SI-units.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(CharSequence text, ChronoParser<Moment> parser, BracketPolicy policy)
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
Interpretes given ISO-conforming text as interval.static MomentInterval
Creates an infinite half-open interval since given start.static MomentInterval
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(Moment moment, MachineTime<?> duration, double alignment)
Creates an interval surrounding given moment.static MomentInterval
Creates an infinite open interval until given end.static MomentInterval
Creates an infinite open interval until given end.Modifier and TypeMethodDescriptionstatic 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.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 TypeMethodDescriptionstatic 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?