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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
static final record
-
Constructor Summary
ConstructorsConstructorDescriptionCorrespondenceSettings
(@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) Creates an instance of aCorrespondenceSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearchiveTypeKey
record component.@Nullable String
Returns the value of thecontactCategoryKey
record component.Returns the value of thecorporateDesignKey
record component.@Nullable String
Returns the value of thecorrespondenceTemplateKey
record component.@Nullable org.joda.time.LocalDate
date()
Returns the value of thedate
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theformProperties
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thehideHeaderFooter
record component.@Nullable String
Returns the value of thelanguageKey
record component.Returns the value of thelocalized
record component.@Nullable String
Returns the value of themarkingKey
record component.Returns the value of theoutputTemplateKey
record component.Returns the value of thesenderKey
record component.final String
toString()
Returns a string representation of this record class.
-
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 aCorrespondenceSettings
record class.- Parameters:
date
- the value for thedate
record componenthideHeaderFooter
- the value for thehideHeaderFooter
record componentcontactCategoryKey
- the value for thecontactCategoryKey
record componentlanguageKey
- the value for thelanguageKey
record componentcorrespondenceTemplateKey
- the value for thecorrespondenceTemplateKey
record componentoutputTemplateKey
- the value for theoutputTemplateKey
record componentcorporateDesignKey
- the value for thecorporateDesignKey
record componentsenderKey
- the value for thesenderKey
record componentarchiveTypeKey
- the value for thearchiveTypeKey
record componentmarkingKey
- the value for themarkingKey
record componentlocalized
- the value for thelocalized
record componentformProperties
- the value for theformProperties
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
date
@Nullable public @Nullable org.joda.time.LocalDate date()Returns the value of thedate
record component.- Returns:
- the value of the
date
record component
-
contactCategoryKey
Returns the value of thecontactCategoryKey
record component.- Returns:
- the value of the
contactCategoryKey
record component
-
languageKey
Returns the value of thelanguageKey
record component.- Returns:
- the value of the
languageKey
record component
-
correspondenceTemplateKey
Returns the value of thecorrespondenceTemplateKey
record component.- Returns:
- the value of the
correspondenceTemplateKey
record component
-
outputTemplateKey
Returns the value of theoutputTemplateKey
record component.- Returns:
- the value of the
outputTemplateKey
record component
-
corporateDesignKey
Returns the value of thecorporateDesignKey
record component.- Returns:
- the value of the
corporateDesignKey
record component
-
senderKey
Returns the value of thesenderKey
record component.- Returns:
- the value of the
senderKey
record component
-
archiveTypeKey
Returns the value of thearchiveTypeKey
record component.- Returns:
- the value of the
archiveTypeKey
record component
-
markingKey
Returns the value of themarkingKey
record component.- Returns:
- the value of the
markingKey
record component
-
localized
Returns the value of thelocalized
record component.- Returns:
- the value of the
localized
record component
-
formProperties
Returns the value of theformProperties
record component.- Returns:
- the value of the
formProperties
record component
-