Package com.vaadin.copilot.javarewriter
Record Class JavaRewriter.MoveTemplateOptions
java.lang.Object
java.lang.Record
com.vaadin.copilot.javarewriter.JavaRewriter.MoveTemplateOptions
- Enclosing class:
JavaRewriter
public static record JavaRewriter.MoveTemplateOptions(String methodName, JavaRewriter.AddReplace addReplace)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMoveTemplateOptions(String methodName, JavaRewriter.AddReplace addReplace) Creates an instance of aMoveTemplateOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddReplacerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themethodNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MoveTemplateOptions
Creates an instance of aMoveTemplateOptionsrecord class.- Parameters:
methodName- the value for themethodNamerecord componentaddReplace- the value for theaddReplacerecord 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). -
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
addReplace
Returns the value of theaddReplacerecord component.- Returns:
- the value of the
addReplacerecord component
-