one Of
A function that represents an "exclusive or"-condition. This function represents the root of a condition that is not nested in a parent condition, unlike the ScopeActivationCondition.noneOf function.
Return
A ScopeActivationCondition object representing the noneOf-condition, which can be evaluated directly.
Parameters
A lambda expression that is executed in the context of the noneOf-condition object to define child conditions.
The oneOf method is an extension function for the ScopeActivationCondition interface, allowing you to define a new scope activation condition using the "exclusive or"-condition logic. This method is executed in the context of the parent condition because it is an extension function and will register the body lambda function as a new oneOf-condition with the parent condition it is nested in.
Parameters
A lambda expression that is executed in the context of the oneOf-condition to define child conditions.