Record Class IStickyLinesProvider.StickyLinesProperties
java.lang.Object
java.lang.Record
org.eclipse.ui.texteditor.stickyscroll.IStickyLinesProvider.StickyLinesProperties
- Record Components:
tabWith- The with of a tabeditor- The editor for which the sticky lines should be provided
- Enclosing interface:
IStickyLinesProvider
public static record IStickyLinesProvider.StickyLinesProperties(int tabWith, IEditorPart editor)
extends Record
Additional properties and access in order to calculate the sticky lines.
-
Constructor Summary
ConstructorsConstructorDescriptionStickyLinesProperties(int tabWith, IEditorPart editor) Creates an instance of aStickyLinesPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptioneditor()Returns the value of theeditorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inttabWith()Returns the value of thetabWithrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
tabWith
public int tabWith()Returns the value of thetabWithrecord component.- Returns:
- the value of the
tabWithrecord component
-
editor
Returns the value of theeditorrecord component.- Returns:
- the value of the
editorrecord component
-