Record Class ScriptLanguageService.TextEdit
java.lang.Object
java.lang.Record
de.gurkenlabs.litiengine.scripting.ScriptLanguageService.TextEdit
- Enclosing interface:
ScriptLanguageService
public static record ScriptLanguageService.TextEdit(ScriptLanguageService.Range range, String text)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTextEdit(ScriptLanguageService.Range range, String text) Creates an instance of aTextEditrecord class. -
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.range()Returns the value of therangerecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextEdit
Creates an instance of aTextEditrecord class.- Parameters:
range- the value for therangerecord componenttext- the value for thetextrecord component
-
-
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). -
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-