Package it.univr.passportease.entity
Class OfficeWorkingDay
java.lang.Object
it.univr.passportease.entity.OfficeWorkingDay
This class represents the working days of an office, which are defined by the day of the week, the start time and
the end time. The start time and the end time are defined by two time intervals, which are optional. If the office
is open only in the morning, the second time interval is not defined. If the office is open only in the afternoon,
the first time interval is not defined. If the office is open all day, both time intervals are defined.
-
Field Summary
Modifier and TypeFieldDescriptionprivate Date
The date and time of the creation of this objectprivate @NonNull Day
The day of the weekprivate @NonNull LocalTime
The start time and the end time of the second time intervalprivate LocalTime
The start time and the end time of the second time interval, can benull
if the office is open only in the morningprivate UUID
The unique identifier of anOfficeWorkingDay
private @NonNull Office
The office to which this working day belongsprivate @NonNull LocalTime
The start time and the end time of the first time intervalprivate LocalTime
The start time and the end time of the first time interval, can benull
if the office is open only in the morningprivate Date
The date and time of the last update of this object -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Equal Method ofOfficeWorkingDay
final int
hashCode()
Hash Code Method ofOfficeWorkingDay
-
Field Details
-
id
The unique identifier of anOfficeWorkingDay
-
day
The day of the week -
startTime1
The start time and the end time of the first time interval -
endTime1
The start time and the end time of the second time interval -
startTime2
The start time and the end time of the first time interval, can benull
if the office is open only in the morning -
endTime2
The start time and the end time of the second time interval, can benull
if the office is open only in the morning -
office
The office to which this working day belongs -
createdAt
The date and time of the creation of this object -
updatedAt
The date and time of the last update of this object
-
-
Constructor Details
-
OfficeWorkingDay
public OfficeWorkingDay()
-
-
Method Details
-
equals
Equal Method ofOfficeWorkingDay
- Overrides:
equals
in classObject
- Parameters:
o
- The object to compare with this object.- Returns:
true
if the given object is an instance ofOfficeWorkingDay
and has the same id of this object,false
otherwise.
-
hashCode
public final int hashCode()Hash Code Method ofOfficeWorkingDay
-