public final class LocalDateRange extends Object implements Comparable<LocalDateRange>
Constructor and Description |
---|
LocalDateRange(LocalDate startDate,
LocalDate endDate)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(LocalDate date)
This method compares a target date with a date range.
|
int |
compareTo(LocalDateRange o) |
boolean |
equals(Object o) |
LocalDate |
getEnd()
Retrieve the date at the end of the range.
|
LocalDate |
getStart()
Retrieve the date at the start of the range.
|
int |
hashCode() |
String |
toString() |
public LocalDate getStart()
public LocalDate getEnd()
public int compareTo(LocalDate date)
date
- target datepublic int compareTo(LocalDateRange o)
compareTo
in interface Comparable<LocalDateRange>
Copyright © 2000–2024 Packwood Software. All rights reserved.