Record Class CorrespondenceSettings.LocalizedCorrespondenceSettings
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.correspondence.impl.action.CorrespondenceSettings.LocalizedCorrespondenceSettings
- Enclosing class:
CorrespondenceSettings
-
Constructor Summary
ConstructorsConstructorDescriptionLocalizedCorrespondenceSettings
(String subject, @Nullable String location, @Nullable String body, @Nullable String copyTo, @Nullable String attachment, List<CorrespondenceSettings.SignatureBean> signatures) Creates an instance of aLocalizedCorrespondenceSettings
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the value of theattachment
record component.@Nullable String
body()
Returns the value of thebody
record component.@Nullable String
copyTo()
Returns the value of thecopyTo
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
location()
Returns the value of thelocation
record component.Returns the value of thesignatures
record component.subject()
Returns the value of thesubject
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
LocalizedCorrespondenceSettings
public LocalizedCorrespondenceSettings(String subject, @Nullable @Nullable String location, @Nullable @Nullable String body, @Nullable @Nullable String copyTo, @Nullable @Nullable String attachment, List<CorrespondenceSettings.SignatureBean> signatures) Creates an instance of aLocalizedCorrespondenceSettings
record class.- Parameters:
subject
- the value for thesubject
record componentlocation
- the value for thelocation
record componentbody
- the value for thebody
record componentcopyTo
- the value for thecopyTo
record componentattachment
- the value for theattachment
record componentsignatures
- the value for thesignatures
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)
. -
subject
Returns the value of thesubject
record component.- Returns:
- the value of the
subject
record component
-
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-
body
Returns the value of thebody
record component.- Returns:
- the value of the
body
record component
-
copyTo
Returns the value of thecopyTo
record component.- Returns:
- the value of the
copyTo
record component
-
attachment
Returns the value of theattachment
record component.- Returns:
- the value of the
attachment
record component
-
signatures
Returns the value of thesignatures
record component.- Returns:
- the value of the
signatures
record component
-