Package com.vaadin.copilot
Record Class PomFileRewriter.Property
java.lang.Object
java.lang.Record
com.vaadin.copilot.PomFileRewriter.Property
- Record Components:
fileRewriter- PomFileRewriter where property is presentpropertyKey- property keypropertyValue- property valuelineNumber- Line number of the property
- Enclosing class:
PomFileRewriter
public static record PomFileRewriter.Property(PomFileRewriter fileRewriter, String propertyKey, String propertyValue, int lineNumber)
extends Record
Property that presents in the pom.xml
-
Constructor Summary
ConstructorsConstructorDescriptionProperty(PomFileRewriter fileRewriter, String propertyKey, String propertyValue, int lineNumber) Creates an instance of aPropertyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileRewriterrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelineNumberrecord component.Returns the value of thepropertyKeyrecord component.Returns the value of thepropertyValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Property
public Property(PomFileRewriter fileRewriter, String propertyKey, String propertyValue, int lineNumber) Creates an instance of aPropertyrecord class.- Parameters:
fileRewriter- the value for thefileRewriterrecord componentpropertyKey- the value for thepropertyKeyrecord componentpropertyValue- the value for thepropertyValuerecord componentlineNumber- the value for thelineNumberrecord 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 '=='. -
fileRewriter
Returns the value of thefileRewriterrecord component.- Returns:
- the value of the
fileRewriterrecord component
-
propertyKey
Returns the value of thepropertyKeyrecord component.- Returns:
- the value of the
propertyKeyrecord component
-
propertyValue
Returns the value of thepropertyValuerecord component.- Returns:
- the value of the
propertyValuerecord component
-
lineNumber
public int lineNumber()Returns the value of thelineNumberrecord component.- Returns:
- the value of the
lineNumberrecord component
-