Record Class ScriptConfig.TimerScript
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.script.ScriptConfig.TimerScript
- Enclosing class:
ScriptConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.inductiveautomation.ignition.common.script.typing.ExtensionFunctionDescriptorstatic final Stringstatic final Stringstatic final ResourceType -
Constructor Summary
ConstructorsConstructorDescriptionTimerScript(TimerKey timerKey, String script) Creates an instance of aTimerScriptrecord 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.static ScriptConfig.TimerScriptofResource(Resource resource) script()Returns the value of thescriptrecord component.static Consumer<ResourceBuilder> serialize(TimerKey timerKey, String script, com.inductiveautomation.ignition.common.script.typing.ExtensionFunctionDescriptor descriptor) timerKey()Returns the value of thetimerKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
RESOURCE_TYPE
-
METHOD_NAME
- See Also:
-
RESOURCE_KEY
- See Also:
-
DESCRIPTOR
public static final com.inductiveautomation.ignition.common.script.typing.ExtensionFunctionDescriptor DESCRIPTOR
-
-
Constructor Details
-
TimerScript
-
-
Method Details
-
ofResource
-
serialize
public static Consumer<ResourceBuilder> serialize(TimerKey timerKey, String script, com.inductiveautomation.ignition.common.script.typing.ExtensionFunctionDescriptor descriptor) -
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). -
timerKey
Returns the value of thetimerKeyrecord component.- Returns:
- the value of the
timerKeyrecord component
-
script
Returns the value of thescriptrecord component.- Returns:
- the value of the
scriptrecord component
-