Record Class MailActionRecipientResource.RecipientBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.address.impl.action.mail.MailActionRecipientResource.RecipientBean
- Enclosing class:
MailActionRecipientResource
-
Constructor Summary
ConstructorsConstructorDescriptionRecipientBean
(String model, String key, String name, String email, @Nullable String emailAlternative, List<MailActionRecipientResource.RecipientSourceBean> sources) Creates an instance of aRecipientBean
record class. -
Method Summary
Modifier and TypeMethodDescriptionemail()
Returns the value of theemail
record component.@Nullable String
Returns the value of theemailAlternative
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.model()
Returns the value of themodel
record component.name()
Returns the value of thename
record component.sources()
Returns the value of thesources
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RecipientBean
public RecipientBean(String model, String key, String name, String email, @Nullable @Nullable String emailAlternative, List<MailActionRecipientResource.RecipientSourceBean> sources) Creates an instance of aRecipientBean
record class.- Parameters:
model
- the value for themodel
record componentkey
- the value for thekey
record componentname
- the value for thename
record componentemail
- the value for theemail
record componentemailAlternative
- the value for theemailAlternative
record componentsources
- the value for thesources
record component
-
-
Method Details
-
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)
. -
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
email
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
emailAlternative
Returns the value of theemailAlternative
record component.- Returns:
- the value of the
emailAlternative
record component
-
sources
Returns the value of thesources
record component.- Returns:
- the value of the
sources
record component
-