Record Class RuleResult
java.lang.Object
java.lang.Record
su.nightexpress.excellentclaims.api.rule.RuleResult
@NullMarked
public record RuleResult(EventState state, @Nullable ActionResult feedback)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRuleResult(EventState state, @Nullable ActionResult feedback) Creates an instance of aRuleResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RuleResultallow()static RuleResultallow(ActionResult feedback) static RuleResultdeny()static RuleResultdeny(ActionResult feedback) final booleanIndicates whether some other object is "equal to" this one.@Nullable ActionResultfeedback()Returns the value of thefeedbackrecord component.final inthashCode()Returns a hash code value for this object.static RuleResultof(boolean result) static RuleResultof(boolean result, ActionResult feedback) static RuleResultpass()state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RuleResult
Creates an instance of aRuleResultrecord class.- Parameters:
state- the value for thestaterecord componentfeedback- the value for thefeedbackrecord component
-
-
Method Details
-
of
-
of
-
pass
-
allow
-
allow
-
deny
-
deny
-
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). -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
feedback
Returns the value of thefeedbackrecord component.- Returns:
- the value of the
feedbackrecord component
-