Record Class ParsedLineNumber
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedLineNumber
- All Implemented Interfaces:
Comparable<ParsedLineNumber>
public record ParsedLineNumber(int bytecodeOffset, int lineNumber)
extends Record
implements Comparable<ParsedLineNumber>
Backend-neutral line-table entry using an exact bytecode offset.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedLineNumber(int bytecodeOffset, int lineNumber) Creates an instance of aParsedLineNumberrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebytecodeOffsetrecord component.intcompareTo(ParsedLineNumber other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelineNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedLineNumber
public ParsedLineNumber(int bytecodeOffset, int lineNumber) Creates an instance of aParsedLineNumberrecord class.- Parameters:
bytecodeOffset- the value for thebytecodeOffsetrecord componentlineNumber- the value for thelineNumberrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedLineNumber>
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
bytecodeOffset
public int bytecodeOffset()Returns the value of thebytecodeOffsetrecord component.- Returns:
- the value of the
bytecodeOffsetrecord component
-
lineNumber
public int lineNumber()Returns the value of thelineNumberrecord component.- Returns:
- the value of the
lineNumberrecord component
-