Package com.vaadin.copilot.javarewriter
Record Class JavaRewriter.AddTemplateOptions
java.lang.Object
java.lang.Record
com.vaadin.copilot.javarewriter.JavaRewriter.AddTemplateOptions
- Enclosing class:
JavaRewriter
public static record JavaRewriter.AddTemplateOptions(boolean javaFieldsForLeafComponents, boolean useIdMappedFields, String methodName, JavaRewriter.AddReplace addReplace)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAddTemplateOptions(boolean javaFieldsForLeafComponents) Constructs AddTemplateOptions withnullmethod name andnulladdReplaceAddTemplateOptions(boolean javaFieldsForLeafComponents, boolean useIdMappedFields, String methodName, JavaRewriter.AddReplace addReplace) Creates an instance of aAddTemplateOptionsrecord 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.booleanReturns the value of thejavaFieldsForLeafComponentsrecord component.Returns the value of themethodNamerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseIdMappedFieldsrecord component.
-
Constructor Details
-
AddTemplateOptions
public AddTemplateOptions(boolean javaFieldsForLeafComponents) Constructs AddTemplateOptions withnullmethod name andnulladdReplace- Parameters:
javaFieldsForLeafComponents-
-
AddTemplateOptions
public AddTemplateOptions(boolean javaFieldsForLeafComponents, boolean useIdMappedFields, String methodName, JavaRewriter.AddReplace addReplace) Creates an instance of aAddTemplateOptionsrecord class.- Parameters:
javaFieldsForLeafComponents- the value for thejavaFieldsForLeafComponentsrecord componentuseIdMappedFields- the value for theuseIdMappedFieldsrecord componentmethodName- 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
javaFieldsForLeafComponents
public boolean javaFieldsForLeafComponents()Returns the value of thejavaFieldsForLeafComponentsrecord component.- Returns:
- the value of the
javaFieldsForLeafComponentsrecord component
-
useIdMappedFields
public boolean useIdMappedFields()Returns the value of theuseIdMappedFieldsrecord component.- Returns:
- the value of the
useIdMappedFieldsrecord component
-
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
-