public Interval withEndDate ( LocalDate date ) { requireNonNull ( date ) ; return new Interval ( startDate , startTime , date , endTime , zoneId ) ; }
Returns a new interval based on this interval but with a different end date .