Record Class SyText
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.text.SyText
- Record Components:
value- The text valuedirection- The text direction
A section of text with a specific direction.
-
Constructor Summary
ConstructorsConstructorDescriptionSyText(String value, SyTextDirection direction) A section of text with a specific direction. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.static SyTextempty()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static SyTextCreate a text section from the given string, usingBidito infer the text direction.static SyTexttext(String text, SyTextDirection direction) Create a text section from the given string and text direction.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
SyText
A section of text with a specific direction.- Parameters:
value- The text valuedirection- The text direction
-
-
Method Details
-
text
-
text
Create a text section from the given string and text direction.- Parameters:
text- The textdirection- The text direction- Returns:
- A text section
-
empty
- Returns:
- An empty text section
-
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 withObjects::equals(Object,Object). -
value
-
direction
-