Package org.salespointframework.time
Class Interval.IntervalBuilder
java.lang.Object
org.salespointframework.time.Interval.IntervalBuilder
- Enclosing class:
Interval
-
Method Summary
Modifier and TypeMethodDescriptionto(LocalDateTime end) Creates anIntervalfrom the current start time until the given end time.withLength(TemporalAmount amount) Creates a newIntervalfrom the current start time adding the givenTemporalAmountto it.
-
Method Details
-
to
Creates anIntervalfrom the current start time until the given end time.- Parameters:
end- must not be null and after the current start time or equal to it.- Returns:
- will never be null.
-
withLength
Creates a newIntervalfrom the current start time adding the givenTemporalAmountto it.- Parameters:
amount- must not be null.- Returns:
- will never be null.
- See Also:
-