private static boolean compareTitles ( String primaryTitle , String firstCompareTitle , String secondCompareTitle , int maxDistance ) { // Compare with the first title if ( compareDistance ( primaryTitle , firstCompareTitle , maxDistance ) ) { return true ; } // Compare with the other title return compareDistance ( primaryTitle , secondCompareTitle , maxDistance ) ; }
Compare a title with two other titles .