Record Class LineNumberEntry
java.lang.Object
java.lang.Record
dev.archunitjava.model.LineNumberEntry
- All Implemented Interfaces:
Comparable<LineNumberEntry>
public record LineNumberEntry(int bytecodeOffset, int lineNumber)
extends Record
implements Comparable<LineNumberEntry>
One exact line-number-table transition.
-
Constructor Summary
ConstructorsConstructorDescriptionLineNumberEntry(int bytecodeOffset, int lineNumber) Creates an instance of aLineNumberEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebytecodeOffsetrecord component.intcompareTo(LineNumberEntry 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
-
LineNumberEntry
public LineNumberEntry(int bytecodeOffset, int lineNumber) Creates an instance of aLineNumberEntryrecord class.- Parameters:
bytecodeOffset- the value for thebytecodeOffsetrecord componentlineNumber- the value for thelineNumberrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<LineNumberEntry>
-
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
-