Record Class Interval

java.lang.Object
java.lang.Record
com.thanlinardos.spring_enterprise_library.time.model.Interval
Record Components:
start - the start date of the interval (nullable).
end - the end date of the interval (nullable).
All Implemented Interfaces:
DateTemporal, Comparable<Interval>

public record Interval(@Nullable LocalDate start, @Nullable LocalDate end) extends Record implements Comparable<Interval>, DateTemporal
Represents a time interval with a start and end date. Provides utility methods for creating, manipulating, and analyzing intervals.