Record Class MailSettings.RecipientSettings

java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.address.impl.action.mail.MailSettings.RecipientSettings
Enclosing class:
MailSettings

public static record MailSettings.RecipientSettings(@Nullable String cc, @Nullable String bcc, @Nullable String replyTo, @Nullable String singleCc, @Nullable List<String> singleCcRecipient, @Nullable String altRecipient, @Nullable String altRecipientUser) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecipientSettings(@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 a RecipientSettings record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    Returns the value of the altRecipient record component.
    @Nullable String
    Returns the value of the altRecipientUser record component.
    @Nullable String
    bcc()
    Returns the value of the bcc record component.
    @Nullable String
    cc()
    Returns the value of the cc record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @Nullable String
    Returns the value of the replyTo record component.
    @Nullable String
    Returns the value of the singleCc record component.
    @Nullable List<String>
    Returns the value of the singleCcRecipient record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a RecipientSettings record class.
      Parameters:
      cc - the value for the cc record component
      bcc - the value for the bcc record component
      replyTo - the value for the replyTo record component
      singleCc - the value for the singleCc record component
      singleCcRecipient - the value for the singleCcRecipient record component
      altRecipient - the value for the altRecipient record component
      altRecipientUser - the value for the altRecipientUser record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • cc

      @Nullable public @Nullable String cc()
      Returns the value of the cc record component.
      Returns:
      the value of the cc record component
    • bcc

      @Nullable public @Nullable String bcc()
      Returns the value of the bcc record component.
      Returns:
      the value of the bcc record component
    • replyTo

      @Nullable public @Nullable String replyTo()
      Returns the value of the replyTo record component.
      Returns:
      the value of the replyTo record component
    • singleCc

      @Nullable public @Nullable String singleCc()
      Returns the value of the singleCc record component.
      Returns:
      the value of the singleCc record component
    • singleCcRecipient

      @Nullable public @Nullable List<String> singleCcRecipient()
      Returns the value of the singleCcRecipient record component.
      Returns:
      the value of the singleCcRecipient record component
    • altRecipient

      @Nullable public @Nullable String altRecipient()
      Returns the value of the altRecipient record component.
      Returns:
      the value of the altRecipient record component
    • altRecipientUser

      @Nullable public @Nullable String altRecipientUser()
      Returns the value of the altRecipientUser record component.
      Returns:
      the value of the altRecipientUser record component