Package app.ductape.sdk.database.types
Record Class TriggerTypes.TriggerResult
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.TriggerTypes.TriggerResult
- Enclosing class:
- TriggerTypes
public static record TriggerTypes.TriggerResult(String trigger, TriggerTypes.TriggerEvent event, boolean success, List<TriggerTypes.TriggerActionResult> actions, long duration, Boolean skipped, String skipReason)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTriggerResult(String trigger, TriggerTypes.TriggerEvent event, boolean success, List<TriggerTypes.TriggerActionResult> actions, long duration, Boolean skipped, String skipReason) Creates an instance of aTriggerResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.longduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.skipped()Returns the value of theskippedrecord component.Returns the value of theskipReasonrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.trigger()Returns the value of thetriggerrecord component.
-
Constructor Details
-
TriggerResult
public TriggerResult(String trigger, TriggerTypes.TriggerEvent event, boolean success, List<TriggerTypes.TriggerActionResult> actions, long duration, Boolean skipped, String skipReason) Creates an instance of aTriggerResultrecord class.- Parameters:
trigger- the value for thetriggerrecord componentevent- the value for theeventrecord componentsuccess- the value for thesuccessrecord componentactions- the value for theactionsrecord componentduration- the value for thedurationrecord componentskipped- the value for theskippedrecord componentskipReason- the value for theskipReasonrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
trigger
Returns the value of thetriggerrecord component.- Returns:
- the value of the
triggerrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
actions
Returns the value of theactionsrecord component.- Returns:
- the value of the
actionsrecord component
-
duration
public long duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
skipped
Returns the value of theskippedrecord component.- Returns:
- the value of the
skippedrecord component
-
skipReason
Returns the value of theskipReasonrecord component.- Returns:
- the value of the
skipReasonrecord component
-