| Package | Description |
|---|---|
| no.digipost.time |
| Modifier and Type | Field and Description |
|---|---|
static TimeSpan |
TimeSpan.EMPTY_FAR_PAST |
| Modifier and Type | Method and Description |
|---|---|
TimeSpan |
TimeSpan.Started.lasting(Duration duration) |
TimeSpan |
TimeSpan.Started.until(Instant endExclusively) |
| Modifier and Type | Method and Description |
|---|---|
Stream<TimeSpan> |
TimeSpan.collapse(TimeSpan other)
Collapse to one or two spans.
|
Optional<TimeSpan> |
TimeSpan.intersection(TimeSpan other)
Give the intersection (the overlapping part) of this
and the given
TimeSpan, or Optional.empty()
if they do not overlap. |
| Modifier and Type | Method and Description |
|---|---|
Stream<TimeSpan> |
TimeSpan.collapse(TimeSpan other)
Collapse to one or two spans.
|
int |
TimeSpan.compareTo(TimeSpan other) |
boolean |
TimeSpan.covers(TimeSpan other)
Check if the given TimeSpan is completly covered by this.
|
Optional<TimeSpan> |
TimeSpan.intersection(TimeSpan other)
Give the intersection (the overlapping part) of this
and the given
TimeSpan, or Optional.empty()
if they do not overlap. |
Copyright © 2019 Digipost. All rights reserved.