Record Class BrevoEmailChangeListener.BrevoEmailUpdate
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.newsletterbrevo.impl.listener.BrevoEmailChangeListener.BrevoEmailUpdate
- Enclosing class:
BrevoEmailChangeListener
public static record BrevoEmailChangeListener.BrevoEmailUpdate(String oldEmail, String newEmail, PrimaryKey account)
extends Record
-
Constructor Summary
ConstructorDescriptionBrevoEmailUpdate
(String oldEmail, String newEmail, PrimaryKey account) Creates an instance of aBrevoEmailUpdate
record class. -
Method Summary
Modifier and TypeMethodDescriptionaccount()
Returns the value of theaccount
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
final int
hashCode()
Returns a hash code value for this object.newEmail()
Returns the value of thenewEmail
record component.oldEmail()
Returns the value of theoldEmail
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BrevoEmailUpdate
Creates an instance of aBrevoEmailUpdate
record class.- Parameters:
oldEmail
- the value for theoldEmail
record componentnewEmail
- the value for thenewEmail
record componentaccount
- the value for theaccount
record component
-
-
Method Details
-
hasEmailChanged
public boolean hasEmailChanged() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
oldEmail
Returns the value of theoldEmail
record component.- Returns:
- the value of the
oldEmail
record component
-
newEmail
Returns the value of thenewEmail
record component.- Returns:
- the value of the
newEmail
record component
-
account
Returns the value of theaccount
record component.- Returns:
- the value of the
account
record component
-