Interface Constraint

    • Method Detail

      • violates

        boolean violates​(Constraint other,
                         Action.ActionEffect actionEffect)
        Gets whether this constraint violates another constraint
        Parameters:
        other - the other constraint
        actionEffect - the effect being evaluated
        Returns:
        true if the combination of constraints is a violation
      • replaces

        boolean replaces​(Constraint other)
        Gets whether this constraint is equivalent to and can thus replace another constraint in a ManagementPermission.
        Parameters:
        other - the other constraint
        Returns:
        true if replacement is valid