Record Class SyTextID
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.text.SyTextID
- Record Components:
value- The value
- All Implemented Interfaces:
Comparable<SyTextID>
An identifier for a section of text.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.static SyTextIDfirst()final inthashCode()Returns a hash code value for this object.next()previous()toString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
SyTextID
Creates an instance of aSyTextIDrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
first
- Returns:
- The first text ID
-
compareTo
- Specified by:
compareToin interfaceComparable<SyTextID>
-
toString
-
next
- Returns:
- The next text ID
-
previous
- Returns:
- The previous text ID
-
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 withObjects::equals(Object,Object). -
value
-