Record Class EditResult
java.lang.Object
java.lang.Record
io.jenkins.plugins.xmleditor.core.edit.EditResult
- Record Components:
before- serialized document before the operationsafter- serialized document after the operationswarnings- namespace warnings found while evaluating XPath
-
Constructor Summary
ConstructorsConstructorDescriptionEditResult(boolean changed, List<OperationReport> reports, String before, String after, List<String> warnings) Creates an instance of aEditResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionafter()Returns the value of theafterrecord component.before()Returns the value of thebeforerecord component.booleanchanged()Returns the value of thechangedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reports()Returns the value of thereportsrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
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 '=='. -
changed
public boolean changed()Returns the value of thechangedrecord component.- Returns:
- the value of the
changedrecord component
-
reports
Returns the value of thereportsrecord component.- Returns:
- the value of the
reportsrecord component
-
before
Returns the value of thebeforerecord component.- Returns:
- the value of the
beforerecord component
-
after
Returns the value of theafterrecord component.- Returns:
- the value of the
afterrecord component
-
warnings
Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-