Record Class DataHolder
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.automation.api.DataHolder
-
Constructor Summary
ConstructorsConstructorDescriptionDataHolder(Entity automation, Entity triggerEntity) DataHolder(Entity automation, Entity triggerEntity, Entity executionEntity) Creates an instance of aDataHolderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theautomationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionEntityrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetriggerEntityrecord component.withExecutionEntity(Entity executionEntity)
-
Constructor Details
-
DataHolder
-
DataHolder
Creates an instance of aDataHolderrecord class.- Parameters:
automation- the value for theautomationrecord componenttriggerEntity- the value for thetriggerEntityrecord componentexecutionEntity- the value for theexecutionEntityrecord component
-
-
Method Details
-
withExecutionEntity
-
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). -
automation
Returns the value of theautomationrecord component.- Returns:
- the value of the
automationrecord component
-
triggerEntity
Returns the value of thetriggerEntityrecord component.- Returns:
- the value of the
triggerEntityrecord component
-
executionEntity
Returns the value of theexecutionEntityrecord component.- Returns:
- the value of the
executionEntityrecord component
-