@Override
    public void mapRuleToResultHandler(final R rule, final RH resultHandler) {
        if ((rule == null) && (resultHandler == null)) {
            LOGGER.warn(NULL_PARAMETERS_WARNING);
        } else if (rule == null) {
            unmapResultHandlerFromAllRules(resultHandler);
        } else if (resultHandler == null) {
            unmapRuleFromAllResultHandlers(rule);
        } else {
            List<RH> mappedResultHandlers = rulesToResultHandlers.get(rule);
            if (mappedResultHandlers == null) {
                mappedResultHandlers = new ArrayList<RH>();
                rulesToResultHandlers.put(rule, mappedResultHandlers);
            }
            mappedResultHandlers.add(resultHandler);
        }
    }
@ Override public void mapRuleToResultHandler ( final R rule , final RH resultHandler ) { if ( ( rule == null ) && ( resultHandler == null ) ) { LOGGER . warn ( NULL_PARAMETERS_WARNING ) ; } else if ( rule == null ) { unmapResultHandlerFromAllRules ( resultHandler ) ; } else if ( resultHandler == null ) { unmapRuleFromAllResultHandlers ( rule ) ; } else { List < RH > mappedResultHandlers = rulesToResultHandlers . get ( rule ) ; if ( mappedResultHandlers == null ) { mappedResultHandlers = new ArrayList < RH > ( ) ; rulesToResultHandlers . put ( rule , mappedResultHandlers ) ; } mappedResultHandlers . add ( resultHandler ) ; } }
@see MappableValidator#mapRuleToResultHandler(Rule, ResultHandler)