Record Class ScriptLanguageService.Document
java.lang.Object
java.lang.Record
de.gurkenlabs.litiengine.scripting.ScriptLanguageService.Document
- Enclosing interface:
ScriptLanguageService
public static record ScriptLanguageService.Document(URI uri, String text, long version, ScriptDefinition definition)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDocument(URI uri, String text, long version, ScriptDefinition definition) Creates an instance of aDocumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Document
Creates an instance of aDocumentrecord class.- Parameters:
uri- the value for theurirecord componenttext- the value for thetextrecord componentversion- the value for theversionrecord componentdefinition- the value for thedefinitionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
version
public long version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-