| Package | Description |
|---|---|
| org.threeten.extra |
Value types and utilities that extend
java.time.*. |
| Modifier and Type | Field | Description |
|---|---|---|
static LocalDateRange |
LocalDateRange.ALL |
A range over the whole time-line.
|
| Modifier and Type | Method | 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.ofEmpty(LocalDate date) |
Obtains an empty date range located at the specified date.
|
static LocalDateRange |
LocalDateRange.ofUnbounded() |
Obtains a range that is unbounded at the start and end.
|
static LocalDateRange |
LocalDateRange.ofUnboundedEnd(LocalDate startInclusive) |
Obtains a range from and including the specified start date.
|
static LocalDateRange |
LocalDateRange.ofUnboundedStart(LocalDate endExclusive) |
Obtains a range up to, but not including, the specified end date.
|
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 | 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–2019 ThreeTen.org. All rights reserved.