Record Class SyTextMouseInteraction
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.text.SyTextMouseInteraction
- Record Components:
interactionKind- The kind of interactionlocationStart- The location at the start of the interactionlocationNow- The location now
public record SyTextMouseInteraction(SyTextMouseInteraction.Kind interactionKind, SyTextLocationType locationStart, SyTextLocationType locationNow)
extends Record
A mouse interaction with a text view.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe kind of interaction. -
Constructor Summary
ConstructorsConstructorDescriptionSyTextMouseInteraction(SyTextMouseInteraction.Kind interactionKind, SyTextLocationType locationStart, SyTextLocationType locationNow) A mouse interaction with a text view. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinteractionKindrecord component.Returns the value of thelocationNowrecord component.Returns the value of thelocationStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SyTextMouseInteraction
public SyTextMouseInteraction(SyTextMouseInteraction.Kind interactionKind, SyTextLocationType locationStart, SyTextLocationType locationNow) A mouse interaction with a text view.- Parameters:
interactionKind- The kind of interactionlocationStart- The location at the start of the interactionlocationNow- The location now
-
-
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). -
interactionKind
Returns the value of theinteractionKindrecord component.- Returns:
- the value of the
interactionKindrecord component
-
locationStart
Returns the value of thelocationStartrecord component.- Returns:
- the value of the
locationStartrecord component
-
locationNow
Returns the value of thelocationNowrecord component.- Returns:
- the value of the
locationNowrecord component
-