public final static List < PolymerNotation > getCHEMPolymers ( List < PolymerNotation > polymers ) { List < PolymerNotation > chemPolymers = new ArrayList < PolymerNotation > ( ) ; for ( PolymerNotation polymer : polymers ) { if ( polymer . getPolymerID ( ) instanceof ChemEntity ) { chemPolymers . add ( polymer ) ; } } return chemPolymers ; }
method to get all chem polymers given a list of PolymerNotation objects