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
ConstructorsConstructorDescriptionBrevoEmailUpdate(String oldEmail, String newEmail, PrimaryKey account) Creates an instance of aBrevoEmailUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccount()Returns the value of theaccountrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.newEmail()Returns the value of thenewEmailrecord component.oldEmail()Returns the value of theoldEmailrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrevoEmailUpdate
Creates an instance of aBrevoEmailUpdaterecord class.- Parameters:
oldEmail- the value for theoldEmailrecord componentnewEmail- the value for thenewEmailrecord componentaccount- the value for theaccountrecord 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 theoldEmailrecord component.- Returns:
- the value of the
oldEmailrecord component
-
newEmail
Returns the value of thenewEmailrecord component.- Returns:
- the value of the
newEmailrecord component
-
account
Returns the value of theaccountrecord component.- Returns:
- the value of the
accountrecord component
-