Record Class ScriptLanguageService.Position
java.lang.Object
java.lang.Record
de.gurkenlabs.litiengine.scripting.ScriptLanguageService.Position
- Enclosing interface:
ScriptLanguageService
-
Constructor Summary
ConstructorsConstructorDescriptionPosition(int line, int column) Creates an instance of aPositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Position
public Position(int line, int column) Creates an instance of aPositionrecord class.- Parameters:
line- the value for thelinerecord componentcolumn- the value for thecolumnrecord 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 with thecomparemethod from their corresponding wrapper classes. -
line
public int line()Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
column
public int column()Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-