Record Class JsonScalarLocator.OffsetEvidence
java.lang.Object
java.lang.Record
io.jenkins.plugins.configsplice.engine.json.JsonScalarLocator.OffsetEvidence
- Enclosing class:
JsonScalarLocator
public static record JsonScalarLocator.OffsetEvidence(long parserReportedStart, int verifiedStart, int startAdjustment, long parserReportedEnd, int verifiedEnd)
extends Record
Diagnostic record of what the structural parser reported versus what was verified.
Consumed by the gate 1 evidence test and the resulting ADR; never surfaced to a build log.
-
Constructor Summary
ConstructorsConstructorDescriptionOffsetEvidence(long parserReportedStart, int verifiedStart, int startAdjustment, long parserReportedEnd, int verifiedEnd) Creates an instance of aOffsetEvidencerecord 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.booleanlongReturns the value of theparserReportedEndrecord component.longReturns the value of theparserReportedStartrecord component.intReturns the value of thestartAdjustmentrecord component.booleanfinal StringtoString()Returns a string representation of this record class.intReturns the value of theverifiedEndrecord component.intReturns the value of theverifiedStartrecord component.
-
Constructor Details
-
OffsetEvidence
public OffsetEvidence(long parserReportedStart, int verifiedStart, int startAdjustment, long parserReportedEnd, int verifiedEnd) Creates an instance of aOffsetEvidencerecord class.- Parameters:
parserReportedStart- the value for theparserReportedStartrecord componentverifiedStart- the value for theverifiedStartrecord componentstartAdjustment- the value for thestartAdjustmentrecord componentparserReportedEnd- the value for theparserReportedEndrecord componentverifiedEnd- the value for theverifiedEndrecord component
-
-
Method Details
-
startNeededAdjustment
public boolean startNeededAdjustment() -
parserEndWasExact
public boolean parserEndWasExact() -
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 with '=='. -
parserReportedStart
public long parserReportedStart()Returns the value of theparserReportedStartrecord component.- Returns:
- the value of the
parserReportedStartrecord component
-
verifiedStart
public int verifiedStart()Returns the value of theverifiedStartrecord component.- Returns:
- the value of the
verifiedStartrecord component
-
startAdjustment
public int startAdjustment()Returns the value of thestartAdjustmentrecord component.- Returns:
- the value of the
startAdjustmentrecord component
-
parserReportedEnd
public long parserReportedEnd()Returns the value of theparserReportedEndrecord component.- Returns:
- the value of the
parserReportedEndrecord component
-
verifiedEnd
public int verifiedEnd()Returns the value of theverifiedEndrecord component.- Returns:
- the value of the
verifiedEndrecord component
-