Record Class ScriptData
java.lang.Object
java.lang.Record
org.springframework.data.elasticsearch.core.query.ScriptData
public record ScriptData(ScriptType type, String language, String script, String scriptName, Map<String,Object> params)
extends Record
value class combining script information.
- Since:
- 4.4
- Author:
- Peter-Josef Meisch
-
Constructor Summary
ConstructorDescriptionScriptData
(ScriptType type, String language, String script, String scriptName, Map<String, Object> params) Creates an instance of aScriptData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.language()
Returns the value of thelanguage
record component.params()
Returns the value of theparams
record component.script()
Returns the value of thescript
record component.Returns the value of thescriptName
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
ScriptData
public ScriptData(@Nullable ScriptType type, @Nullable String language, @Nullable String script, @Nullable String scriptName, @Nullable Map<String, Object> params) Creates an instance of aScriptData
record class.- Parameters:
type
- the value for thetype
record componentlanguage
- the value for thelanguage
record componentscript
- the value for thescript
record componentscriptName
- the value for thescriptName
record componentparams
- the value for theparams
record component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
language
Returns the value of thelanguage
record component.- Returns:
- the value of the
language
record component
-
script
Returns the value of thescript
record component.- Returns:
- the value of the
script
record component
-
scriptName
Returns the value of thescriptName
record component.- Returns:
- the value of the
scriptName
record component
-
params
Returns the value of theparams
record component.- Returns:
- the value of the
params
record component
-