public class TemporalRange extends Object
LocalDate objects.
This class is immutable and thread-safe
| Modifier and Type | Class and Description |
|---|---|
static class |
TemporalRange.Builder
Public builder for creating instances of
app.pickmaven.businessdays.TemporalRange objects. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Checks if two
app.pickmaven.businessdays.TemporalRange objects are equal. |
java.time.LocalDate |
getEndingDate()
Gets the ending date of
app.pickmaven.businessdays.TemporalRange |
java.time.LocalDate |
getStartingDate()
Gets the starting date of
app.pickmaven.businessdays.TemporalRange |
int |
hashCode()
Computes the hashcode
|
boolean |
includes(java.time.LocalDate date)
Checks if this temporal range includes the parameter date.
|
boolean |
includes(TemporalRange range)
Checks if this temporal range includes the parameter range.
|
String |
toString()
Outputs the temporal range from starting date to ending one.
|
public java.time.LocalDate getStartingDate()
app.pickmaven.businessdays.TemporalRangeLocalDate of startingDatepublic java.time.LocalDate getEndingDate()
app.pickmaven.businessdays.TemporalRangepublic boolean includes(TemporalRange range)
range - must not be nullpublic boolean includes(java.time.LocalDate date)
date - must not be nullpublic int hashCode()
public boolean equals(Object o)
app.pickmaven.businessdays.TemporalRange objects are equal. It compares the value of startingDate and endingDate.Copyright © 2020. All rights reserved.