Record Class MjmlRenderResult
java.lang.Object
java.lang.Record
dev.jcputney.mjml.MjmlRenderResult
- Record Components:
html- the rendered HTML stringtitle- the document title extracted from mj-title, or empty stringpreviewText- the preview text extracted from mj-preview, or empty string
-
Constructor Summary
ConstructorsConstructorDescriptionMjmlRenderResult(String html, String title, String previewText) Creates an instance of aMjmlRenderResultrecord class. -
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.html()Returns the value of thehtmlrecord component.Returns the value of thepreviewTextrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MjmlRenderResult
-
-
Method Details
-
toString
-
hashCode
-
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). -
html
-
title
-
previewText
Returns the value of thepreviewTextrecord component.- Returns:
- the value of the
previewTextrecord component
-