Class DateInterval
java.lang.Object
com.github.lgooddatepicker.optionalusertools.DateInterval
DateInterval, This class represents an interval between two dates.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor (Empty), This will create an empty DateInterval instance.DateInterval
(LocalDate intervalStart, LocalDate intervalEnd) Constructor (Normal), This will create a date interval using the supplied dates. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isEmpty()
isEmpty, This will return true if both dates are null.
-
Field Details
-
firstDate
firstDate, This is the first date in the interval. -
lastDate
lastDate, This is the last date in the interval.
-
-
Constructor Details
-
DateInterval
public DateInterval()Constructor (Empty), This will create an empty DateInterval instance. An empty date interval has both dates set to null. -
DateInterval
Constructor (Normal), This will create a date interval using the supplied dates.
-
-
Method Details
-
isEmpty
public boolean isEmpty()isEmpty, This will return true if both dates are null. Otherwise, this returns false.
-