Package monq.jfa.ooo
Record Class TemplateAction
java.lang.Object
java.lang.Record
monq.jfa.ooo.TemplateAction
- All Implemented Interfaces:
Action
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateAction(List<TemplateElement> tmpl) Creates an instance of aTemplateActionrecord 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.voidinvoke(StringBuilder out, int start) Will be called with new data appended to the givenStringBuilder.tmpl()Returns the value of thetmplrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
TemplateAction
Creates an instance of aTemplateActionrecord class.- Parameters:
tmpl- the value for thetmplrecord component
-
-
Method Details
-
invoke
Description copied from interface:ActionWill be called with new data appended to the givenStringBuilder. The method is free to work in any way with the whole text content, not only the new part demarcated by thestartparameter. -
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). -
tmpl
Returns the value of thetmplrecord component.- Returns:
- the value of the
tmplrecord component
-