public static List < Monomer > getListOfMonomer ( List < MonomerNotation > monomerNotations ) throws MonomerException , HELM2HandledException , CTKException , NotationException , ChemistryException , MonomerLoadingException { List < Monomer > items = new ArrayList < Monomer > ( ) ; for ( int i = 0 ; i < monomerNotations . size ( ) ; i ++ ) { items . addAll ( Validation . getAllMonomers ( monomerNotations . get ( i ) , i ) ) ; } return items ; }
method to get all monomers for all MonomerNotations