public boolean matches(Condition condition) {
        boolean match = false;
        Enumeration conditions = getConditions();
        while (!match && conditions.hasMoreElements()) {
            Condition existingCondition = (Condition) conditions.nextElement();
            match = existingCondition.matches(condition);
        }
        return match;
    }
public boolean matches(Condition condition) {
        boolean match = false;
        Enumeration conditions = getConditions();
        while (!match && conditions.hasMoreElements()) {
            Condition existingCondition = (Condition) conditions.nextElement();
            match = existingCondition.matches(condition);
        }
        return match;
    }
public boolean matches ( Condition condition ) { boolean match = false ; Enumeration conditions = getConditions ( ) ; while ( ! match && conditions . hasMoreElements ( ) ) { Condition existingCondition = ( Condition ) conditions . nextElement ( ) ; match = existingCondition . matches ( condition ) ; } return match ; }
See if this Precondition contains a matching Condition.

@param condition the condition to match
@return true if this precondition contains atleast one condition matching the given condition
See if this Precondition contains a matching Condition .