| Package | Description |
|---|---|
| org.threeten.extra |
| Modifier and Type | Method and Description |
|---|---|
static Interval |
Interval.of(Instant startInclusive,
Duration duration)
Obtains an instance of
Interval from the start and a duration. |
static Interval |
Interval.of(Instant startInclusive,
Instant endExclusive)
Obtains an instance of
Interval from the start and end instant. |
static Interval |
Interval.parse(CharSequence text)
Obtains an instance of
Interval from a text string such as
2007-12-03T10:15:30Z/2007-12-04T10:15:30Z. |
Interval |
Interval.withEnd(Instant end)
Creates a new interval with the specified end instant.
|
Interval |
Interval.withStart(Instant start)
Creates a new interval with the specified start instant.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Interval.abuts(Interval interval)
Checks if this interval abuts the specified interval.
|
boolean |
Interval.encloses(Interval interval)
Checks if this interval encloses 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.overlaps(Interval interval)
Checks if this interval overlaps the specified interval.
|
Copyright © 2010–2016 ThreeTen.org. All rights reserved.