boolean multipleValuesForOneAction = false;
boolean duplicatedAction = false;
for ( Map.Entry<ActionDetectorKey, ActionDetector> entry : actionDetectorMap.entrySet() ) {
ActionDetectorKey key = entry.getKey();
ActionDetector actionDetector = entry.getValue();
ActionDetector otherActionDetector = otherRowDetector.getActionDetector( key );
// If 1 field is in both
if ( otherActionDetector != null ) {
ActionDetector mergedActionDetector = actionDetector.merge( otherActionDetector );
if ( mergedActionDetector.isMultipleValuesForOneAction() ) {
multipleValuesForOneAction = true;
}
if ( mergedActionDetector.isDuplicated() ) {
duplicatedAction = true;
}
}
}
if ( multipleValuesForOneAction ) {