| Modifier and Type | Method and Description |
|---|---|
static SimpleInterval<Date> |
SimpleInterval.between(Date start,
Date end)
Creates a new interval between given boundaries.
|
static SimpleInterval<Instant> |
SimpleInterval.between(Instant start,
Instant end)
Creates a new interval between given boundaries.
|
SimpleInterval<T> |
SimpleInterval.Factory.between(T start,
T end)
Creates a new interval between given boundaries.
|
SimpleInterval<T> |
SimpleInterval.Factory.parse(CharSequence text,
ChronoParser<T> parser)
Interpretes given text as interval using a localized interval pattern.
|
SimpleInterval<T> |
SimpleInterval.Factory.parse(CharSequence text,
ChronoParser<T> parser,
String intervalPattern)
Interpretes given text as interval using given interval pattern.
|
static SimpleInterval<Date> |
SimpleInterval.since(Date start)
Creates a new interval since given start.
|
static SimpleInterval<Instant> |
SimpleInterval.since(Instant start)
Creates a new interval since given start.
|
SimpleInterval<T> |
SimpleInterval.Factory.since(T start)
Creates a new interval since given start.
|
static SimpleInterval<Date> |
SimpleInterval.until(Date end)
Creates a new interval until given end.
|
static SimpleInterval<Instant> |
SimpleInterval.until(Instant end)
Creates a new interval until given end.
|
SimpleInterval<T> |
SimpleInterval.Factory.until(T end)
Creates a new interval until given end.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<SimpleInterval<T>> |
SimpleInterval.findIntersection(ChronoInterval<T> other)
Obtains the intersection of this interval and other one if present.
|
static IntervalTree<Instant,SimpleInterval<Instant>> |
IntervalTree.onInstantTimeLine(Collection<SimpleInterval<Instant>> intervals)
Creates an interval tree for the type
java.time.Instant filled with given simple intervals. |
static IntervalTree<Date,SimpleInterval<Date>> |
IntervalTree.onTraditionalTimeLine(Collection<SimpleInterval<Date>> intervals)
Creates an interval tree for the legacy type
java.util.Date filled with given simple intervals. |
| Modifier and Type | Method and Description |
|---|---|
static IntervalTree<Instant,SimpleInterval<Instant>> |
IntervalTree.onInstantTimeLine(Collection<SimpleInterval<Instant>> intervals)
Creates an interval tree for the type
java.time.Instant filled with given simple intervals. |
static IntervalTree<Date,SimpleInterval<Date>> |
IntervalTree.onTraditionalTimeLine(Collection<SimpleInterval<Date>> intervals)
Creates an interval tree for the legacy type
java.util.Date filled with given simple intervals. |
Copyright © 2014–2018. All rights reserved.