Record Class CorrespondenceSettings

java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.correspondence.impl.action.CorrespondenceSettings

public record CorrespondenceSettings(@Nullable org.joda.time.LocalDate date, boolean hideHeaderFooter, @Nullable String contactCategoryKey, @Nullable String languageKey, @Nullable String correspondenceTemplateKey, String outputTemplateKey, String corporateDesignKey, String senderKey, String archiveTypeKey, @Nullable String markingKey, Map<String,CorrespondenceSettings.LocalizedCorrespondenceSettings> localized, CorrespondenceSettings.FormProperties formProperties) extends Record
  • Constructor Details

    • CorrespondenceSettings

      public CorrespondenceSettings(@Nullable @Nullable org.joda.time.LocalDate date, boolean hideHeaderFooter, @Nullable @Nullable String contactCategoryKey, @Nullable @Nullable String languageKey, @Nullable @Nullable String correspondenceTemplateKey, String outputTemplateKey, String corporateDesignKey, String senderKey, String archiveTypeKey, @Nullable @Nullable String markingKey, Map<String,CorrespondenceSettings.LocalizedCorrespondenceSettings> localized, CorrespondenceSettings.FormProperties formProperties)
      Creates an instance of a CorrespondenceSettings record class.
      Parameters:
      date - the value for the date record component
      hideHeaderFooter - the value for the hideHeaderFooter record component
      contactCategoryKey - the value for the contactCategoryKey record component
      languageKey - the value for the languageKey record component
      correspondenceTemplateKey - the value for the correspondenceTemplateKey record component
      outputTemplateKey - the value for the outputTemplateKey record component
      corporateDesignKey - the value for the corporateDesignKey record component
      senderKey - the value for the senderKey record component
      archiveTypeKey - the value for the archiveTypeKey record component
      markingKey - the value for the markingKey record component
      localized - the value for the localized record component
      formProperties - the value for the formProperties 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • date

      @Nullable public @Nullable org.joda.time.LocalDate date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component
    • hideHeaderFooter

      public boolean hideHeaderFooter()
      Returns the value of the hideHeaderFooter record component.
      Returns:
      the value of the hideHeaderFooter record component
    • contactCategoryKey

      @Nullable public @Nullable String contactCategoryKey()
      Returns the value of the contactCategoryKey record component.
      Returns:
      the value of the contactCategoryKey record component
    • languageKey

      @Nullable public @Nullable String languageKey()
      Returns the value of the languageKey record component.
      Returns:
      the value of the languageKey record component
    • correspondenceTemplateKey

      @Nullable public @Nullable String correspondenceTemplateKey()
      Returns the value of the correspondenceTemplateKey record component.
      Returns:
      the value of the correspondenceTemplateKey record component
    • outputTemplateKey

      public String outputTemplateKey()
      Returns the value of the outputTemplateKey record component.
      Returns:
      the value of the outputTemplateKey record component
    • corporateDesignKey

      public String corporateDesignKey()
      Returns the value of the corporateDesignKey record component.
      Returns:
      the value of the corporateDesignKey record component
    • senderKey

      public String senderKey()
      Returns the value of the senderKey record component.
      Returns:
      the value of the senderKey record component
    • archiveTypeKey

      public String archiveTypeKey()
      Returns the value of the archiveTypeKey record component.
      Returns:
      the value of the archiveTypeKey record component
    • markingKey

      @Nullable public @Nullable String markingKey()
      Returns the value of the markingKey record component.
      Returns:
      the value of the markingKey record component
    • localized

      Returns the value of the localized record component.
      Returns:
      the value of the localized record component
    • formProperties

      public CorrespondenceSettings.FormProperties formProperties()
      Returns the value of the formProperties record component.
      Returns:
      the value of the formProperties record component