public final class Interval extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Interval.IntervalBuilder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Interval.IntervalBuilder |
from(LocalDateTime start)
Starts building a new
Interval with the given start time. |
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 static Interval.IntervalBuilder from(LocalDateTime start)
Interval
with the given start time.start
- must not be null.public LocalDateTime getStart()
Interval
.public LocalDateTime getEnd()
Interval
.public Duration getDuration()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.