Record Class SyTextLineNumber
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.text.SyTextLineNumber
- Record Components:
value- The line number
- All Implemented Interfaces:
Comparable<SyTextLineNumber>
A line number.
-
Constructor Summary
ConstructorsConstructorDescriptionSyTextLineNumber(int value) Creates an instance of aSyTextLineNumberrecord class. -
Method Summary
Modifier and TypeMethodDescriptionadjust(int delta) intfinal booleanIndicates whether some other object is "equal to" this one.static SyTextLineNumberfirst()final inthashCode()Returns a hash code value for this object.next()toString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
SyTextLineNumber
public SyTextLineNumber(int value) Creates an instance of aSyTextLineNumberrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
first
- Returns:
- The first line number
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<SyTextLineNumber>
-
next
- Returns:
- The next line number
-
adjust
- Parameters:
delta- The delta- Returns:
- The line number adjusted by the given delta
-
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. -
value
-