Record Class TimeInterval

java.lang.Object
java.lang.Record
com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
Record Components:
start - the start of the interval.
end - the end of the interval.
All Implemented Interfaces:
Comparable<TimeInterval>

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