Uses of Class
org.threeten.extra.Interval

Packages that use Interval
Package
Description
Value types and utilities that extend java.time.*.
  • Uses of Interval in org.threeten.extra

    Fields in org.threeten.extra declared as Interval
    Modifier and Type
    Field
    Description
    static final 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 of Interval with unbounded start and the specified end instant.
    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 of Interval from the duration and the end.
    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, where the end instant is exclusive.
    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 of Interval with the specified start instant and unbounded end.
    Interval.union(Interval other)
    Calculates the interval that is the union of this interval and the specified interval.
    Interval.withEnd(Instant end)
    Returns a copy of this range with the specified end instant.
    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.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.span(Interval other)
    Calculates the smallest interval that encloses this interval and the specified interval.
    Interval.union(Interval other)
    Calculates the interval that is the union of this interval and the specified interval.