Record Class MailSettings.RecipientSettings
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.address.impl.action.mail.MailSettings.RecipientSettings
- Enclosing class:
MailSettings
-
Constructor Summary
ConstructorsConstructorDescriptionRecipientSettings
(@Nullable String cc, @Nullable String bcc, @Nullable String replyTo, @Nullable String singleCc, @Nullable List<String> singleCcRecipient, @Nullable String altRecipient, @Nullable String altRecipientUser) Creates an instance of aRecipientSettings
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the value of thealtRecipient
record component.@Nullable String
Returns the value of thealtRecipientUser
record component.@Nullable String
bcc()
Returns the value of thebcc
record component.@Nullable String
cc()
Returns the value of thecc
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.@Nullable String
replyTo()
Returns the value of thereplyTo
record component.@Nullable String
singleCc()
Returns the value of thesingleCc
record component.Returns the value of thesingleCcRecipient
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RecipientSettings
public RecipientSettings(@Nullable @Nullable String cc, @Nullable @Nullable String bcc, @Nullable @Nullable String replyTo, @Nullable @Nullable String singleCc, @Nullable @Nullable List<String> singleCcRecipient, @Nullable @Nullable String altRecipient, @Nullable @Nullable String altRecipientUser) Creates an instance of aRecipientSettings
record class.- Parameters:
cc
- the value for thecc
record componentbcc
- the value for thebcc
record componentreplyTo
- the value for thereplyTo
record componentsingleCc
- the value for thesingleCc
record componentsingleCcRecipient
- the value for thesingleCcRecipient
record componentaltRecipient
- the value for thealtRecipient
record componentaltRecipientUser
- the value for thealtRecipientUser
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)
. -
cc
Returns the value of thecc
record component.- Returns:
- the value of the
cc
record component
-
bcc
Returns the value of thebcc
record component.- Returns:
- the value of the
bcc
record component
-
replyTo
Returns the value of thereplyTo
record component.- Returns:
- the value of the
replyTo
record component
-
singleCc
Returns the value of thesingleCc
record component.- Returns:
- the value of the
singleCc
record component
-
singleCcRecipient
Returns the value of thesingleCcRecipient
record component.- Returns:
- the value of the
singleCcRecipient
record component
-
altRecipient
Returns the value of thealtRecipient
record component.- Returns:
- the value of the
altRecipient
record component
-
altRecipientUser
Returns the value of thealtRecipientUser
record component.- Returns:
- the value of the
altRecipientUser
record component
-