Package ch.so.agi.gretl.control.manifest
Record Class TriggerDefinition
java.lang.Object
java.lang.Record
ch.so.agi.gretl.control.manifest.TriggerDefinition
-
Constructor Summary
ConstructorsConstructorDescriptionTriggerDefinition(String jobId, TriggerEvent on) Creates an instance of aTriggerDefinitionrecord 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.jobId()Returns the value of thejobIdrecord component.on()Returns the value of theonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TriggerDefinition
Creates an instance of aTriggerDefinitionrecord class.- Parameters:
jobId- the value for thejobIdrecord componenton- the value for theonrecord 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). -
jobId
Returns the value of thejobIdrecord component.- Returns:
- the value of the
jobIdrecord component
-
on
Returns the value of theonrecord component.- Returns:
- the value of the
onrecord component
-