Package edu.suffolk.litlab.efsp.model
Record Class EmailTemplates
java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.model.EmailTemplates
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacceptedSubjectrecord component.Returns the value of theacceptedTemplaterecord component.Returns the value of theconfirmationSubjectrecord component.Returns the value of theconfirmationTemplaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theneutralSubjectrecord component.Returns the value of theneutralTemplaterecord component.Returns the value of therejectedSubjectrecord component.Returns the value of therejectedTemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EmailTemplates
public EmailTemplates() -
EmailTemplates
public EmailTemplates(String confirmationTemplate, String confirmationSubject, String acceptedTemplate, String acceptedSubject, String rejectedTemplate, String rejectedSubject, String neutralTemplate, String neutralSubject) Creates an instance of aEmailTemplatesrecord class.- Parameters:
confirmationTemplate- the value for theconfirmationTemplaterecord componentconfirmationSubject- the value for theconfirmationSubjectrecord componentacceptedTemplate- the value for theacceptedTemplaterecord componentacceptedSubject- the value for theacceptedSubjectrecord componentrejectedTemplate- the value for therejectedTemplaterecord componentrejectedSubject- the value for therejectedSubjectrecord componentneutralTemplate- the value for theneutralTemplaterecord componentneutralSubject- the value for theneutralSubjectrecord 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). -
confirmationTemplate
Returns the value of theconfirmationTemplaterecord component.- Returns:
- the value of the
confirmationTemplaterecord component
-
confirmationSubject
Returns the value of theconfirmationSubjectrecord component.- Returns:
- the value of the
confirmationSubjectrecord component
-
acceptedTemplate
Returns the value of theacceptedTemplaterecord component.- Returns:
- the value of the
acceptedTemplaterecord component
-
acceptedSubject
Returns the value of theacceptedSubjectrecord component.- Returns:
- the value of the
acceptedSubjectrecord component
-
rejectedTemplate
Returns the value of therejectedTemplaterecord component.- Returns:
- the value of the
rejectedTemplaterecord component
-
rejectedSubject
Returns the value of therejectedSubjectrecord component.- Returns:
- the value of the
rejectedSubjectrecord component
-
neutralTemplate
Returns the value of theneutralTemplaterecord component.- Returns:
- the value of the
neutralTemplaterecord component
-
neutralSubject
Returns the value of theneutralSubjectrecord component.- Returns:
- the value of the
neutralSubjectrecord component
-