Package com.onec.mail.template
Record Class MailTemplateDescriptor
java.lang.Object
java.lang.Record
com.onec.mail.template.MailTemplateDescriptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhtml()Returns the value of thehtmlrecord component.name()Returns the value of thenamerecord component.replyTo()Returns the value of thereplyTorecord component.subject()Returns the value of thesubjectrecord component.Class<?> target()Returns the value of thetargetrecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MailTemplateDescriptor
public MailTemplateDescriptor(Class<?> target, String name, String subject, String template, boolean html, String replyTo) Creates an instance of aMailTemplateDescriptorrecord class.- Parameters:
target- the value for thetargetrecord componentname- the value for thenamerecord componentsubject- the value for thesubjectrecord componenttemplate- the value for thetemplaterecord componenthtml- the value for thehtmlrecord componentreplyTo- the value for thereplyTorecord 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 '=='. -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
html
public boolean html()Returns the value of thehtmlrecord component.- Returns:
- the value of the
htmlrecord component
-
replyTo
Returns the value of thereplyTorecord component.- Returns:
- the value of the
replyTorecord component
-