Record Class ChangeEMailAddressDTO
java.lang.Object
java.lang.Record
de.gustavblass.fsu.fmi.roombooking.dto.ChangeEMailAddressDTO
- Record Components:
newAddress- The new e-mail address which shall replace the old one.
Represents an
Actor's with to change their Actor.eMailAddress.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NotNull @Email StringThe field for thenewAddressrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChangeEMailAddressDTO(@NotNull @Email String newAddress) Creates an instance of aChangeEMailAddressDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull @Email StringReturns the value of thenewAddressrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
newAddress
The field for thenewAddressrecord component.
-
-
Constructor Details
-
ChangeEMailAddressDTO
Creates an instance of aChangeEMailAddressDTOrecord class.- Parameters:
newAddress- the value for thenewAddressrecord 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). -
newAddress
Returns the value of thenewAddressrecord component.- Returns:
- the value of the
newAddressrecord component
-