public static List < Chain > getRepresentativeAtomsOnly ( List < Chain > chains ) { List < Chain > newChains = new ArrayList < Chain > ( ) ; for ( Chain chain : chains ) { Chain newChain = getRepresentativeAtomsOnly ( chain ) ; newChains . add ( newChain ) ; } return newChains ; }
Convert a List of chain objects to another List of chains containing Representative atoms only .