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 aRecipientBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionemail()Returns the value of theemailrecord component.@Nullable StringReturns the value of theemailAlternativerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.model()Returns the value of themodelrecord component.name()Returns the value of thenamerecord component.sources()Returns the value of thesourcesrecord component.final StringtoString()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 aRecipientBeanrecord class.- Parameters:
model- the value for themodelrecord componentkey- the value for thekeyrecord componentname- the value for thenamerecord componentemail- the value for theemailrecord componentemailAlternative- the value for theemailAlternativerecord componentsources- the value for thesourcesrecord 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 themodelrecord component.- Returns:
- the value of the
modelrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
emailAlternative
Returns the value of theemailAlternativerecord component.- Returns:
- the value of the
emailAlternativerecord component
-
sources
Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-