Record Class SyTextSelectionServiceType.SyTextSelectionIsSelected
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.text.SyTextSelectionServiceType.SyTextSelectionIsSelected
- Record Components:
component- The componentselection- The selection
- All Implemented Interfaces:
SyTextSelectionServiceType.SyTextSelectionStatusType
- Enclosing interface:
SyTextSelectionServiceType
public static record SyTextSelectionServiceType.SyTextSelectionIsSelected(SyComponentReadableType component, SyTextSelection selection)
extends Record
implements SyTextSelectionServiceType.SyTextSelectionStatusType
A piece of text is selected in the given component.
-
Constructor Summary
ConstructorsConstructorDescriptionSyTextSelectionIsSelected(SyComponentReadableType component, SyTextSelection selection) A piece of text is selected in the given component. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theselectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SyTextSelectionIsSelected
A piece of text is selected in the given component.- Parameters:
component- The componentselection- The selection
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
component
-
selection
-