src/main/java/de/blau/android/validation/BaseValidator.java
/**
     * Return a List of Strings describing the problems for a Way with a highway tag
     * 
     * @param ctx Android Context
     * @param w the Way
     * @param highway the value of the highway tag
     * @return a List containing the problem descriptions
     */
Return a List of Strings describing the problems for a Way with a highway tag

@param ctx Android Context
@param w the Way
@param highway the value of the highway tag
@return a List containing the problem descriptions
Return a List of Strings describing the problems for a Way with a highway tag @param ctx Android Context @param w the Way @param highway the value of the highway tag @return a List containing the problem descriptions
List<String> describeProblemHighway(@NonNull Context ctx, @NonNull Way w, @NonNull String highway) {
        List<String> wayProblems = new ArrayList<>();
        if (Tags.VALUE_ROAD.equalsIgnoreCase(highway)) {
            wayProblems.add(ctx.getString(R.string.toast_unsurveyed_road));
        }
        if ((w.getCachedProblems() & Validator.IMPERIAL_UNITS) != 0) {
            wayProblems.add(ctx.getString(R.string.toast_imperial_units));
        }
        return wayProblems;
    }
List < String > describeProblemHighway ( @ NonNull Context ctx , @ NonNull Way w , @ NonNull String highway ) { List < String > wayProblems = new ArrayList < > ( ) ; if ( Tags . VALUE_ROAD . equalsIgnoreCase ( highway ) ) { wayProblems . add ( ctx . getString ( R . string . toast_unsurveyed_road ) ) ; } if ( ( w . getCachedProblems ( ) & Validator . IMPERIAL_UNITS ) != 0 ) { wayProblems . add ( ctx . getString ( R . string . toast_imperial_units ) ) ; } return wayProblems ; }
Return a List of Strings describing the problems for a Way with a highway tag
Return a List of Strings describing the problems for a Way with a highway tag
//