public final class Interval extends Object
Constructor and Description |
---|
Interval(LocalDateTime start,
LocalDateTime end)
Creates a new
Interval between the given start and end. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Duration |
getDuration()
Returns the duration of the interval.
|
LocalDateTime |
getEnd()
Returns the end date of the
Interval . |
LocalDateTime |
getStart()
Returns the start date of the
Interval . |
int |
hashCode() |
String |
toString() |
public Interval(LocalDateTime start, LocalDateTime end)
Interval
between the given start and end.start
- must not be null.end
- must not be null.public LocalDateTime getStart()
Interval
.public LocalDateTime getEnd()
Interval
.public Duration getDuration()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.