| Package | Description |
|---|---|
| org.threeten.extra |
| Modifier and Type | Field and Description |
|---|---|
static LocalDateRange |
LocalDateRange.ALL
A range over the whole time-line.
|
| Modifier and Type | Method and Description |
|---|---|
LocalDateRange |
LocalDateRange.intersection(LocalDateRange other)
Calculates the range that is the intersection of this range and the specified range.
|
static LocalDateRange |
LocalDateRange.of(LocalDate startInclusive,
LocalDate endExclusive)
Obtains a half-open range of dates, including the start and excluding the end.
|
static LocalDateRange |
LocalDateRange.of(LocalDate startInclusive,
Period period)
Obtains an instance of
LocalDateRange from the start and a period. |
static LocalDateRange |
LocalDateRange.ofClosed(LocalDate startInclusive,
LocalDate endInclusive)
Obtains a closed range of dates, including the start and end.
|
static LocalDateRange |
LocalDateRange.parse(CharSequence text)
Obtains an instance of
LocalDateRange from a text string such as
2007-12-03/2007-12-04, where the end date is exclusive. |
LocalDateRange |
LocalDateRange.span(LocalDateRange other)
Calculates the smallest range that encloses this range and the specified range.
|
LocalDateRange |
LocalDateRange.union(LocalDateRange other)
Calculates the range that is the union of this range and the specified range.
|
LocalDateRange |
LocalDateRange.withEnd(TemporalAdjuster adjuster)
Returns a copy of this range with the end date adjusted.
|
LocalDateRange |
LocalDateRange.withStart(TemporalAdjuster adjuster)
Returns a copy of this range with the start date adjusted.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
LocalDateRange.abuts(LocalDateRange other)
Checks if this range abuts the specified range.
|
boolean |
LocalDateRange.encloses(LocalDateRange other)
Checks if this range encloses the specified range.
|
LocalDateRange |
LocalDateRange.intersection(LocalDateRange other)
Calculates the range that is the intersection of this range and the specified range.
|
boolean |
LocalDateRange.isAfter(LocalDateRange other)
Checks if this range is after the specified range.
|
boolean |
LocalDateRange.isBefore(LocalDateRange range)
Checks if this range is before the specified range.
|
boolean |
LocalDateRange.isConnected(LocalDateRange other)
Checks if this range is connected to the specified range.
|
boolean |
LocalDateRange.overlaps(LocalDateRange other)
Checks if this range overlaps the specified range.
|
LocalDateRange |
LocalDateRange.span(LocalDateRange other)
Calculates the smallest range that encloses this range and the specified range.
|
LocalDateRange |
LocalDateRange.union(LocalDateRange other)
Calculates the range that is the union of this range and the specified range.
|
Copyright © 2010–2017 ThreeTen.org. All rights reserved.