Package it.univr.passportease.entity
Class Notification
java.lang.Object
it.univr.passportease.entity.Notification
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DateTheDateof when thisNotificationwas created.private @NonNull DateThe end date of thisNotification, that is the date of when theUserwants to end the notification.private UUIDThe unique identifier of thisNotification.private @NonNull BooleanA boolean value that indicates whether thisNotificationis ready to be collected by theUser.private StringThe message of thisNotification.private @NonNull OfficeTheOfficethat thisNotificationis requested to.private @NonNull RequestTypeTheRequestTypeof thisNotification.private @NonNull DateThe start date of thisNotification, that is the date of when theUserwants to start the notification.private DateTheDateof when thisNotificationwas updated.private @NonNull UserTheUserthat requested thisNotification. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanEquals method for thisNotification.final inthashCode()Hash code method for thisNotification.
-
Field Details
-
id
The unique identifier of thisNotification. -
isReady
A boolean value that indicates whether thisNotificationis ready to be collected by theUser. -
message
The message of thisNotification. -
startDate
The start date of thisNotification, that is the date of when theUserwants to start the notification. -
endDate
The end date of thisNotification, that is the date of when theUserwants to end the notification. -
office
TheOfficethat thisNotificationis requested to. -
user
TheUserthat requested thisNotification. -
requestType
TheRequestTypeof thisNotification. -
createdAt
TheDateof when thisNotificationwas created. -
updatedAt
TheDateof when thisNotificationwas updated.
-
-
Constructor Details
-
Notification
public Notification()
-
-
Method Details
-
equals
Equals method for thisNotification.- Overrides:
equalsin classObject- Parameters:
o- The object to compare with thisNotification.- Returns:
trueif the given object is aNotificationand has the sameUUIDas thisNotification.falseotherwise.
-
hashCode
public final int hashCode()Hash code method for thisNotification.- Overrides:
hashCodein classObject- Returns:
- The hash code of this
Notification.
-