public static List < PolymerNotation > getListOfPolymersSpecificType ( String str , List < PolymerNotation > polymers ) { List < PolymerNotation > list = new ArrayList < PolymerNotation > ( ) ; for ( PolymerNotation polymer : polymers ) { if ( polymer . getPolymerID ( ) . getType ( ) . equals ( str ) ) { list . add ( polymer ) ; } } return list ; }
method to get all polymers for one specific polymer type