Record Class ScriptBuilder.ScriptData
java.lang.Object
java.lang.Record
kr.toxicity.model.api.script.ScriptBuilder.ScriptData
- Enclosing interface:
ScriptBuilder
public static record ScriptBuilder.ScriptData(@Nullable String args, @NotNull ScriptBuilder.ScriptMetaData metadata)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionScriptData(@Nullable String args, @NotNull ScriptBuilder.ScriptMetaData metadata) Creates an instance of aScriptDatarecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringargs()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull ScriptBuilder.ScriptMetaDatametadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScriptData
public ScriptData(@Nullable @Nullable String args, @NotNull @NotNull ScriptBuilder.ScriptMetaData metadata) Creates an instance of aScriptDatarecord class.- Parameters:
args- the value for theargsrecord componentmetadata- the value for themetadatarecord 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). -
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-