Record Class MailSettings.LocalizedMailSettings
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.address.impl.action.mail.MailSettings.LocalizedMailSettings
- All Implemented Interfaces:
Serializable
- Enclosing class:
MailSettings
public static record MailSettings.LocalizedMailSettings(@Nullable String subject, @Nullable String htmlText, @Nullable String plainText, @Nullable List<BinaryBean> attachments)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLocalizedMailSettings(@Nullable String subject, @Nullable String htmlText, @Nullable String plainText, @Nullable List<BinaryBean> attachments) Creates an instance of aLocalizedMailSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable List<BinaryBean> Returns the value of theattachmentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringhtmlText()Returns the value of thehtmlTextrecord component.@Nullable StringReturns the value of theplainTextrecord component.@Nullable Stringsubject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalizedMailSettings
public LocalizedMailSettings(@Nullable @Nullable String subject, @Nullable @Nullable String htmlText, @Nullable @Nullable String plainText, @Nullable @Nullable List<BinaryBean> attachments) Creates an instance of aLocalizedMailSettingsrecord class.- Parameters:
subject- the value for thesubjectrecord componenthtmlText- the value for thehtmlTextrecord componentplainText- the value for theplainTextrecord componentattachments- the value for theattachmentsrecord 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). -
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
htmlText
Returns the value of thehtmlTextrecord component.- Returns:
- the value of the
htmlTextrecord component
-
plainText
Returns the value of theplainTextrecord component.- Returns:
- the value of the
plainTextrecord component
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-