Record Class HealthTransitionEvaluator.Decision
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.health.HealthTransitionEvaluator.Decision
- Enclosing class:
HealthTransitionEvaluator
public static record HealthTransitionEvaluator.Decision(QRecord state, boolean transition, List<AlertSignal> raises, List<AlertResolution> resolutions)
extends Record
A decision contains only new state and alert intents, with no I/O.
-
Constructor Summary
ConstructorsConstructorDescriptionDecision(QRecord state, boolean transition, List<AlertSignal> raises, List<AlertResolution> resolutions) Creates an instance of aDecisionrecord 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.raises()Returns the value of theraisesrecord component.Returns the value of theresolutionsrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetransitionrecord component.
-
Constructor Details
-
Decision
public Decision(QRecord state, boolean transition, List<AlertSignal> raises, List<AlertResolution> resolutions) Creates an instance of aDecisionrecord class.- Parameters:
state- the value for thestaterecord componenttransition- the value for thetransitionrecord componentraises- the value for theraisesrecord componentresolutions- the value for theresolutionsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
transition
public boolean transition()Returns the value of thetransitionrecord component.- Returns:
- the value of the
transitionrecord component
-
raises
Returns the value of theraisesrecord component.- Returns:
- the value of the
raisesrecord component
-
resolutions
Returns the value of theresolutionsrecord component.- Returns:
- the value of the
resolutionsrecord component
-