src/main/java/de/blau/android/util/Util.java
/**
     * Convert a collection to a semicolon separated string
     * 
     * @param collection the Collection to convert
     * @return string containing the individual list values separated by ; or the empty string if list is null or empty
     */
Convert a collection to a semicolon separated string

@param collection the Collection to convert
@return string containing the individual list values separated by ; or the empty string if list is null or empty
Convert a collection to a semicolon separated string @param collection the Collection to convert @return string containing the individual list values separated by ; or the empty string if list is null or empty
@NonNull
    public static String toOsmList(@Nullable Collection<String> collection) {
        StringBuilder osmList = new StringBuilder();
        if (collection != null) {
            for (String s : collection) {
                if (osmList.length() > 0) {
                    osmList.append(Tags.OSM_VALUE_SEPARATOR);
                }
                osmList.append(s);
            }
        }
        return osmList.toString();
    }
@ NonNull public static String toOsmList ( @ Nullable Collection < String > collection ) { StringBuilder osmList = new StringBuilder ( ) ; if ( collection != null ) { for ( String s : collection ) { if ( osmList . length ( ) > 0 ) { osmList . append ( Tags . OSM_VALUE_SEPARATOR ) ; } osmList . append ( s ) ; } } return osmList . toString ( ) ; }
Convert a collection to a semicolon separated string
Convert a collection to a semicolon separated string