public class TimeInterval
extends java.lang.Object
| Constructor and Description |
|---|
TimeInterval(java.time.ZonedDateTime start,
java.time.ZonedDateTime end) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.time.ZonedDateTime dateTime) |
java.time.Duration |
duration() |
boolean |
equals(java.lang.Object o) |
java.time.Duration |
getDuration() |
java.time.ZonedDateTime |
getEndTime() |
TimeInterval |
getIntersection(TimeInterval ti) |
java.time.ZonedDateTime |
getStartTime() |
java.lang.String |
toString() |
public TimeInterval(java.time.ZonedDateTime start,
java.time.ZonedDateTime end)
start - the start time of the intervalend - the end time of the intervalpublic java.time.Duration getDuration()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.time.ZonedDateTime getStartTime()
public java.time.ZonedDateTime getEndTime()
public java.time.Duration duration()
public boolean contains(java.time.ZonedDateTime dateTime)
dateTime - public TimeInterval getIntersection(TimeInterval ti)
public boolean equals(java.lang.Object o)
equals in class java.lang.Object© Copyright IBM 2017