Uses of Class
org.threeten.extra.Interval
-
Packages that use Interval Package Description org.threeten.extra Value types and utilities that extendjava.time.*
. -
-
Uses of Interval in org.threeten.extra
Fields in org.threeten.extra declared as Interval Modifier and Type Field Description static Interval
Interval. ALL
An interval over the whole time-line.Methods in org.threeten.extra that return Interval Modifier and Type Method Description static Interval
Interval. endingAt(Instant endExclusive)
Obtains an instance ofInterval
with unbounded start and the specified end instant.Interval
Interval. intersection(Interval other)
Calculates the interval that is the intersection of this interval and the specified interval.static Interval
Interval. of(Duration duration, Instant endExclusive)
Obtains an instance ofInterval
from the duration and the end.static Interval
Interval. of(Instant startInclusive, Duration duration)
Obtains an instance ofInterval
from the start and a duration.static Interval
Interval. of(Instant startInclusive, Instant endExclusive)
Obtains an instance ofInterval
from the start and end instant.static Interval
Interval. parse(CharSequence text)
Obtains an instance ofInterval
from a text string such as2007-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.static Interval
Interval. startingAt(Instant startInclusive)
Obtains an instance ofInterval
with the specified start instant and unbounded end.Interval
Interval. union(Interval other)
Calculates the interval that is the union of this interval and the specified interval.Interval
Interval. withEnd(Instant end)
Returns a copy of this range with the specified end instant.Interval
Interval. withStart(Instant start)
Returns a copy of this range with the specified start instant.Methods in org.threeten.extra with parameters of type Interval 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.
-