Record Class ComponentRestrictionViolation.RestrictedComponent
java.lang.Object
java.lang.Record
com.codebarrel.automation.api.validation.ComponentRestrictionViolation.RestrictedComponent
- Record Components:
componentId- the component ID within the rule configurationcomponentType- the type key of the component (e.g., "jira.issue.event.trigger:created")
- Enclosing class:
ComponentRestrictionViolation
public static record ComponentRestrictionViolation.RestrictedComponent(String componentId, String componentType)
extends Record
Represents a single restricted component within a rule.
-
Constructor Summary
ConstructorsConstructorDescriptionRestrictedComponent(String componentId, String componentType) Creates a new restricted component. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentIdrecord component.Returns the value of thecomponentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RestrictedComponent
Creates a new restricted component.- Parameters:
componentId- the component ID within the rule configurationcomponentType- the type key of the component (must not be null)
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
componentId
Returns the value of thecomponentIdrecord component.- Returns:
- the value of the
componentIdrecord component
-
componentType
Returns the value of thecomponentTyperecord component.- Returns:
- the value of the
componentTyperecord component
-