com.github.asvid.biedra.domain / TimeRange / <init>

<init>

TimeRange(start: LocalTime, length: Duration)

that takes LocalTime start and Duration duration of range

Parameters

start - start date of range

length - duration of range

Constructor that takes LocalTime start and Duration duration of range

TimeRange(startDate: Date, endDate: Date)

that takes standard Java Date start and Date end

Parameters

startDate - start date of range

endDate - end date of range

Constructor that takes standard Java Date start and Date end

TimeRange(start: LocalTime, end: LocalTime)

TimeRange allows easer storing and manipulating time ranges, for example: Shop open hours This class uses Duration and LocalTime from JodaTime library, because similar Java classes are available from API26