public final class TimeInterval extends Object
Constructor and Description |
---|
TimeInterval(Instant startTime,
Instant endTime)
Constructs a new time interval.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Duration |
getDuration()
Returns the duration of the interval.
|
Instant |
getEndTime()
Returns the end time of the interval.
|
Instant |
getStartTime()
Returns the start time of the interval.
|
int |
hashCode() |
String |
toString() |
public Instant getStartTime()
public Instant getEndTime()
public Duration getDuration()
Copyright © 2020 Dirk Lemmermann Software & Consulting. All rights reserved.