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