Record Class EMailChangeEvent.EMailChange
java.lang.Object
java.lang.Record
de.gustavblass.fsu.fmi.roombooking.events.EMailChangeEvent.EMailChange
- Record Components:
actor- The user who wants to change their e-mail address.newEmail- The new e-mail address that shall replace the current one.verificationToken- The token that will be included in the confirmation e-mail to verify thenewEmail.
- Enclosing class:
EMailChangeEvent
public static record EMailChangeEvent.EMailChange(@NonNull Actor actor, @NonNull String newEmail, @NonNull EMailVerificationToken verificationToken)
extends Record
Represents an
Actor's wish to update their Actor.eMailAddress.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull ActorThe field for theactorrecord component.private final @NonNull StringThe field for thenewEmailrecord component.private final @NonNull EMailVerificationTokenThe field for theverificationTokenrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEMailChange(@NonNull Actor actor, @NonNull String newEmail, @NonNull EMailVerificationToken verificationToken) Creates an instance of aEMailChangerecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull Actoractor()Returns the value of theactorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull StringnewEmail()Returns the value of thenewEmailrecord component.final StringtoString()Returns a string representation of this record class.@NonNull EMailVerificationTokenReturns the value of theverificationTokenrecord component.
-
Field Details
-
actor
-
newEmail
-
verificationToken
The field for theverificationTokenrecord component.
-
-
Constructor Details
-
EMailChange
public EMailChange(@NonNull @NonNull Actor actor, @NonNull @NonNull String newEmail, @NonNull @NonNull EMailVerificationToken verificationToken) Creates an instance of aEMailChangerecord class.- Parameters:
actor- the value for theactorrecord componentnewEmail- the value for thenewEmailrecord componentverificationToken- the value for theverificationTokenrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
actor
-
newEmail
-
verificationToken
Returns the value of theverificationTokenrecord component.- Returns:
- the value of the
verificationTokenrecord component
-