Record Class EmailTemplates

java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.model.EmailTemplates

public record EmailTemplates(String confirmationTemplate, String confirmationSubject, String acceptedTemplate, String acceptedSubject, String rejectedTemplate, String rejectedSubject, String neutralTemplate, String neutralSubject) extends Record
  • 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 a EmailTemplates record class.
      Parameters:
      confirmationTemplate - the value for the confirmationTemplate record component
      confirmationSubject - the value for the confirmationSubject record component
      acceptedTemplate - the value for the acceptedTemplate record component
      acceptedSubject - the value for the acceptedSubject record component
      rejectedTemplate - the value for the rejectedTemplate record component
      rejectedSubject - the value for the rejectedSubject record component
      neutralTemplate - the value for the neutralTemplate record component
      neutralSubject - the value for the neutralSubject 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.
    • confirmationTemplate

      public String confirmationTemplate()
      Returns the value of the confirmationTemplate record component.
      Returns:
      the value of the confirmationTemplate record component
    • confirmationSubject

      public String confirmationSubject()
      Returns the value of the confirmationSubject record component.
      Returns:
      the value of the confirmationSubject record component
    • acceptedTemplate

      public String acceptedTemplate()
      Returns the value of the acceptedTemplate record component.
      Returns:
      the value of the acceptedTemplate record component
    • acceptedSubject

      public String acceptedSubject()
      Returns the value of the acceptedSubject record component.
      Returns:
      the value of the acceptedSubject record component
    • rejectedTemplate

      public String rejectedTemplate()
      Returns the value of the rejectedTemplate record component.
      Returns:
      the value of the rejectedTemplate record component
    • rejectedSubject

      public String rejectedSubject()
      Returns the value of the rejectedSubject record component.
      Returns:
      the value of the rejectedSubject record component
    • neutralTemplate

      public String neutralTemplate()
      Returns the value of the neutralTemplate record component.
      Returns:
      the value of the neutralTemplate record component
    • neutralSubject

      public String neutralSubject()
      Returns the value of the neutralSubject record component.
      Returns:
      the value of the neutralSubject record component