Record Class ScriptLanguageService.Location
java.lang.Object
java.lang.Record
de.gurkenlabs.litiengine.scripting.ScriptLanguageService.Location
- Enclosing interface:
ScriptLanguageService
public static record ScriptLanguageService.Location(URI uri, ScriptLanguageService.Range range)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLocation(URI uri, ScriptLanguageService.Range range) Creates an instance of aLocationrecord 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.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
Constructor Details
-
Location
Creates an instance of aLocationrecord class.- Parameters:
uri- the value for theurirecord componentrange- the value for therangerecord 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). -
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-