Record Class Comment
java.lang.Object
java.lang.Record
pro.verron.asciidoc.core.Comment
- Record Components:
id- unique identifier for the commentblockStart- starting block positionlineStart- starting line positionblockEnd- ending block positionlineEnd- ending line position
public record Comment(BigInteger id, int blockStart, int lineStart, int blockEnd, int lineEnd)
extends Record
Represents a comment with positional information.
-
Constructor Summary
ConstructorsConstructorDescriptionComment(BigInteger id, int blockStart, int lineStart, int blockEnd, int lineEnd) Creates an instance of aCommentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintblockEnd()Returns the value of theblockEndrecord component.intReturns the value of theblockStartrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.intlineEnd()Returns the value of thelineEndrecord component.intReturns the value of thelineStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Comment
Creates an instance of aCommentrecord class.- Parameters:
id- the value for theidrecord componentblockStart- the value for theblockStartrecord componentlineStart- the value for thelineStartrecord componentblockEnd- the value for theblockEndrecord componentlineEnd- the value for thelineEndrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
blockStart
public int blockStart()Returns the value of theblockStartrecord component.- Returns:
- the value of the
blockStartrecord component
-
lineStart
-
blockEnd
-
lineEnd
-