java.lang.Object
java.lang.Record
st.orm.template.impl.Elements.TemplateExpression
- All Implemented Interfaces:
Elements.Expression
- Enclosing class:
Elements
public static record Elements.TemplateExpression(@Nonnull StringTemplatePREVIEW template)
extends Record
implements Elements.Expression
TemplateExpression relies on preview features of the Java platform:
TemplateExpressionrefers to one or more preview APIs:StringTemplate.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateExpression(StringTemplatePREVIEW template) Creates an instance of aTemplateExpressionrecord 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.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TemplateExpression
Creates an instance of aTemplateExpressionrecord class.- Parameters:
template- the value for thetemplaterecord 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). -
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
TemplateExpressionwhen preview features are enabled.