| Package | Description |
|---|---|
| org.threeten.extra |
| Modifier and Type | Field | Description |
|---|---|---|
static Interval |
Interval.ALL |
An interval over the whole time-line.
|
| Modifier and Type | Method | Description |
|---|---|---|
Interval |
Interval.intersection(Interval other) |
Calculates the interval that is the intersection of this interval and the specified interval.
|
static Interval |
Interval.of(java.time.Instant startInclusive,
java.time.Duration duration) |
Obtains an instance of
Interval from the start and a duration. |
static Interval |
Interval.of(java.time.Instant startInclusive,
java.time.Instant endExclusive) |
Obtains an instance of
Interval from the start and end instant. |
static Interval |
Interval.parse(java.lang.CharSequence text) |
Obtains an instance of
Interval from a text string such as
2007-12-03T10:15:30Z/2007-12-04T10:15:30Z, where the end instant is exclusive. |
Interval |
Interval.span(Interval other) |
Calculates the smallest interval that encloses this interval and the specified interval.
|
Interval |
Interval.union(Interval other) |
Calculates the interval that is the union of this interval and the specified interval.
|
Interval |
Interval.withEnd(java.time.Instant end) |
Returns a copy of this range with the specified end instant.
|
Interval |
Interval.withStart(java.time.Instant start) |
Returns a copy of this range with the specified start instant.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
Interval.abuts(Interval other) |
Checks if this interval abuts the specified interval.
|
boolean |
Interval.encloses(Interval other) |
Checks if this interval encloses the specified interval.
|
Interval |
Interval.intersection(Interval other) |
Calculates the interval that is the intersection of this interval and the specified interval.
|
boolean |
Interval.isAfter(Interval interval) |
Checks if this interval is after the specified interval.
|
boolean |
Interval.isBefore(Interval interval) |
Checks if this interval is before the specified interval.
|
boolean |
Interval.isConnected(Interval other) |
Checks if this interval is connected to the specified interval.
|
boolean |
Interval.overlaps(Interval other) |
Checks if this interval overlaps the specified interval.
|
Interval |
Interval.span(Interval other) |
Calculates the smallest interval that encloses this interval and the specified interval.
|
Interval |
Interval.union(Interval other) |
Calculates the interval that is the union of this interval and the specified interval.
|
Copyright © 2010–2018 ThreeTen.org. All rights reserved.