Package it.univr.passportease.entity
Class Notification
java.lang.Object
it.univr.passportease.entity.Notification
-
Field Summary
Modifier and TypeFieldDescriptionprivate Date
TheDate
of when thisNotification
was created.private @NonNull Date
The end date of thisNotification
, that is the date of when theUser
wants to end the notification.private UUID
The unique identifier of thisNotification
.private @NonNull Boolean
A boolean value that indicates whether thisNotification
is ready to be collected by theUser
.private String
The message of thisNotification
.private @NonNull Office
TheOffice
that thisNotification
is requested to.private @NonNull RequestType
TheRequestType
of thisNotification
.private @NonNull Date
The start date of thisNotification
, that is the date of when theUser
wants to start the notification.private Date
TheDate
of when thisNotification
was updated.private @NonNull User
TheUser
that requested thisNotification
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Equals method for thisNotification
.final int
hashCode()
Hash code method for thisNotification
.
-
Field Details
-
id
The unique identifier of thisNotification
. -
isReady
A boolean value that indicates whether thisNotification
is ready to be collected by theUser
. -
message
The message of thisNotification
. -
startDate
The start date of thisNotification
, that is the date of when theUser
wants to start the notification. -
endDate
The end date of thisNotification
, that is the date of when theUser
wants to end the notification. -
office
TheOffice
that thisNotification
is requested to. -
user
TheUser
that requested thisNotification
. -
requestType
TheRequestType
of thisNotification
. -
createdAt
TheDate
of when thisNotification
was created. -
updatedAt
TheDate
of when thisNotification
was updated.
-
-
Constructor Details
-
Notification
public Notification()
-
-
Method Details
-
equals
Equals method for thisNotification
.- Overrides:
equals
in classObject
- Parameters:
o
- The object to compare with thisNotification
.- Returns:
true
if the given object is aNotification
and has the sameUUID
as thisNotification
.false
otherwise.
-
hashCode
public final int hashCode()Hash code method for thisNotification
.- Overrides:
hashCode
in classObject
- Returns:
- The hash code of this
Notification
.
-