Record Class ConversationInstanceConstraint.ConstraintResult.Denied
java.lang.Object
java.lang.Record
org.teleight.teleightbots.conversation.constraint.ConversationInstanceConstraint.ConstraintResult.Denied
- Record Components:
reason- A human-readable reason describing why the constraint was not met.
- All Implemented Interfaces:
ConversationInstanceConstraint.ConstraintResult
- Enclosing interface:
ConversationInstanceConstraint.ConstraintResult
public static record ConversationInstanceConstraint.ConstraintResult.Denied(String reason)
extends Record
implements ConversationInstanceConstraint.ConstraintResult
Represents a constraint violation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ConversationInstanceConstraint.ConstraintResult
ConversationInstanceConstraint.ConstraintResult.Allowed, ConversationInstanceConstraint.ConstraintResult.Denied -
Constructor Summary
Constructors -
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.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Denied
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
reason
-