| Package | Description |
|---|---|
| net.time4j.range |
Interval support.
|
| Modifier and Type | Field and Description |
|---|---|
static ClockInterval |
ClockInterval.FULL_DAY
Represents the full day from 00:00 inclusive to 24:00 exclusive.
|
| Modifier and Type | Method and Description |
|---|---|
static ClockInterval |
ClockInterval.between(LocalTime start,
LocalTime end)
Creates a finite half-open interval between given wall times.
|
static ClockInterval |
ClockInterval.between(PlainTime start,
PlainTime end)
Creates a finite half-open interval between given wall times.
|
static ClockInterval |
ClockInterval.from(ChronoInterval<PlainTime> interval)
Converts an arbitrary clock interval to an interval of this type.
|
ClockInterval |
ClockInterval.move(long amount,
ClockUnit unit)
Moves this interval along the time axis by given units.
|
static ClockInterval |
ClockInterval.parse(CharSequence text,
ChronoParser<PlainTime> parser,
BracketPolicy policy)
Interpretes given text as interval.
|
static ClockInterval |
ClockInterval.parse(CharSequence text,
ChronoParser<PlainTime> startFormat,
char separator,
ChronoParser<PlainTime> endFormat,
BracketPolicy policy,
ParseLog status)
Interpretes given text as interval.
|
static ClockInterval |
ClockInterval.parse(String text,
ChronoParser<PlainTime> parser)
Interpretes given text as interval using a localized interval pattern.
|
static ClockInterval |
ClockInterval.parse(String text,
ChronoParser<PlainTime> parser,
String intervalPattern)
Interpretes given text as interval using given interval pattern.
|
static ClockInterval |
ClockInterval.parseISO(String text)
Interpretes given ISO-conforming text as interval.
|
static ClockInterval |
ClockInterval.since(LocalTime start)
Creates a finite half-open interval between given start time and
midnight at end of day (exclusive).
|
static ClockInterval |
ClockInterval.since(PlainTime start)
Creates a finite half-open interval between given start time and
midnight at end of day (exclusive).
|
static ClockInterval |
ClockInterval.until(LocalTime end)
Creates a finite half-open interval between midnight at start of day
and given end time.
|
static ClockInterval |
ClockInterval.until(PlainTime end)
Creates a finite half-open interval between midnight at start of day
and given end time.
|
| Modifier and Type | Method and Description |
|---|---|
DayPartitionBuilder |
DayPartitionBuilder.addDailyRule(ClockInterval partition)
Adds a rule to partition any calendar date.
|
DayPartitionBuilder |
DayPartitionBuilder.addSpecialRule(PlainDate specialDay,
ClockInterval partition)
Adds a rule to partition a special calendar date.
|
DayPartitionBuilder |
DayPartitionBuilder.addWeekdayRule(SpanOfWeekdays spanOfWeekdays,
ClockInterval partition)
Adds a rule to partition a date dependending on when its day of week falls into given range.
|
DayPartitionBuilder |
DayPartitionBuilder.addWeekdayRule(Weekday dayOfWeek,
ClockInterval partition)
Adds a rule to partition a date dependending on its day of week.
|
DayPartitionBuilder |
DayPartitionBuilder.addWeekdayRule(Weekday from,
Weekday to,
ClockInterval partition)
Adds a rule to partition a date dependending on when its day of week falls into given range.
|
static IntervalRelation |
IntervalRelation.between(ClockInterval a,
ClockInterval b)
Determines the relation between given intervals.
|
boolean |
IntervalRelation.matches(ClockInterval a,
ClockInterval b)
Does this relation match the relation between given intervals?
|
Copyright © 2014–2021. All rights reserved.