Record Class SyTextSelection
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.text.SyTextSelection
- Record Components:
lowerInclusive- The inclusive lower bound of the text selectionupperInclusive- The inclusive upper bound of the text selectionregions- The selection regions, for rendering purposes
public record SyTextSelection(SyTextLocationType lowerInclusive, SyTextLocationType upperInclusive, List<com.io7m.jregions.core.parameterized.areas.PAreaI<SySpaceParentRelativeType>> regions)
extends Record
An immutable text selection.
-
Constructor Summary
ConstructorsConstructorDescriptionSyTextSelection(SyTextLocationType lowerInclusive, SyTextLocationType upperInclusive, List<com.io7m.jregions.core.parameterized.areas.PAreaI<SySpaceParentRelativeType>> regions) An immutable text selection. -
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 thelowerInclusiverecord component.List<com.io7m.jregions.core.parameterized.areas.PAreaI<SySpaceParentRelativeType>> regions()Returns the value of theregionsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupperInclusiverecord component.
-
Constructor Details
-
SyTextSelection
public SyTextSelection(SyTextLocationType lowerInclusive, SyTextLocationType upperInclusive, List<com.io7m.jregions.core.parameterized.areas.PAreaI<SySpaceParentRelativeType>> regions) An immutable text selection.- Parameters:
lowerInclusive- The inclusive lower bound of the text selectionupperInclusive- The inclusive upper bound of the text selectionregions- The selection regions, for rendering purposes
-
-
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). -
lowerInclusive
Returns the value of thelowerInclusiverecord component.- Returns:
- the value of the
lowerInclusiverecord component
-
upperInclusive
Returns the value of theupperInclusiverecord component.- Returns:
- the value of the
upperInclusiverecord component
-
regions
-