src/doge/data/ModificationList.java
public static ModificationList parseListOfMods(String input) {
        if (!input.trim().equals("")) {
            ArrayList<Modification> listToAdd = new ArrayList<Modification>();

            String[] blocks = input.split(MOD_OPTION_DELIMITER_REGEX);
            for (String block : blocks) {
                Modification mod = Modification.parseMod(block);
                if (mod != null) {
                    listToAdd.add(mod);
                }
            }
            return new ModificationList(listToAdd);
        } else {
            return null;
        }
    }
/**
     * Return a ModificationList object from an input
     *
     * @param input input by user
     * @return the ModificationList object
     */
Return a ModificationList object from an input
@param input input by user
@return the ModificationList object
Return a ModificationList object from an input @param input input by user @return the ModificationList object
public static ModificationList parseListOfMods(String input) {
        if (!input.trim().equals("")) {
            ArrayList<Modification> listToAdd = new ArrayList<Modification>();
            String[] blocks = input.split(MOD_OPTION_DELIMITER_REGEX);
            for (String block : blocks) {
                Modification mod = Modification.parseMod(block);
                if (mod != null) {
                    listToAdd.add(mod);
                }
            }
            return new ModificationList(listToAdd);
        } else {
            return null;
        }
    }
public static ModificationList parseListOfMods ( String input ) { if ( ! input . trim ( ) . equals ( "" ) ) { ArrayList < Modification > listToAdd = new ArrayList < Modification > ( ) ; String [ ] blocks = input . split ( MOD_OPTION_DELIMITER_REGEX ) ; for ( String block : blocks ) { Modification mod = Modification . parseMod ( block ) ; if ( mod != null ) { listToAdd . add ( mod ) ; } } return new ModificationList ( listToAdd ) ; } else { return null ; } }
Return a ModificationList object from an input
 @param input input by user
 @return the ModificationList object
Return a ModificationList object from an input @param input input by user @return the ModificationList object