public static List<String> delimitedStringToList(@Nullable String delimitedString) {
        if (delimitedString == null) {
            return null;
        }
        String[] splits = delimitedString.split("[,;\\n]");

        List<String> result = new ArrayList<>();

        for (String split : splits) {
            split = split.trim();
            if (!split.isEmpty()) {
                result.add(split);
            }
        }
        return result;
    }
public static List<String> delimitedStringToList(@Nullable String delimitedString) {
        if (delimitedString == null) {
            return null;
        }
        String[] splits = delimitedString.split("[,;\\n]");

        List<String> result = new ArrayList<>();

        for (String split : splits) {
            split = split.trim();
            if (!split.isEmpty()) {
                result.add(split);
            }
        }
        return result;
    }
public static List < String > delimitedStringToList ( @ Nullable String delimitedString ) { if ( delimitedString == null ) { return null ; } String [ ] splits = delimitedString . split ( "[,;\\n]" ) ; List < String > result = new ArrayList <> ( ) ; for ( String split : splits ) { split = split . trim ( ) ; if ( ! split . isEmpty ( ) ) { result . add ( split ) ; } } return result ; }
Split given String. Delimiters are {@code ","}, {@code ";"} and {@code "\n"}.

@param delimitedString
@return splitted string or {@code null} if given {@code delimitedString} is {@code null}
Split given String . Delimiters are { @code } { @code ; } and { @code \ n } .