/** * Returns bond maps between sourceAtomCount and targetAtomCount molecules * based on the atoms * * @param ac1 sourceAtomCount molecule * @param ac2 targetAtomCount molecule * @param mappings mappings between sourceAtomCount and targetAtomCount * molecule atoms * @return bond maps between sourceAtomCount and targetAtomCount molecules * based on the atoms */ public synchronized List<Map<IBond, IBond>> makeBondMapsOfAtomMaps(IAtomContainer ac1, IAtomContainer ac2, List<AtomAtomMapping> mappings) { List<Map<IBond, IBond>> bondMaps = Collections.synchronizedList(new ArrayList<Map<IBond, IBond>>()); for (AtomAtomMapping mapping : mappings) { bondMaps.add(makeBondMapOfAtomMap(ac1, ac2, mapping)); } return bondMaps; }
/** * Returns bond maps between sourceAtomCount and targetAtomCount molecules * based on the atoms * * @param ac1 sourceAtomCount molecule * @param ac2 targetAtomCount molecule * @param mappings mappings between sourceAtomCount and targetAtomCount * molecule atoms * @return bond maps between sourceAtomCount and targetAtomCount molecules * based on the atoms */ public synchronized List<Map<IBond, IBond>> makeBondMapsOfAtomMaps(IAtomContainer ac1, IAtomContainer ac2, List<AtomAtomMapping> mappings) { List<Map<IBond, IBond>> bondMaps = Collections.synchronizedList(new ArrayList<>()); mappings.forEach((mapping) -> { bondMaps.add(makeBondMapOfAtomMap(ac1, ac2, mapping)); }); return bondMaps; }
/** * Returns bond maps between sourceAtomCount and targetAtomCount molecules * based on the atoms * * @param ac1 sourceAtomCount molecule * @param ac2 targetAtomCount molecule * @param mappings mappings between sourceAtomCount and targetAtomCount * molecule atoms * @return bond maps between sourceAtomCount and targetAtomCount molecules * based on the atoms */ public synchronized List<Map<IBond, IBond>> makeBondMapsOfAtomMaps(IAtomContainer ac1, IAtomContainer ac2, List<AtomAtomMapping> mappings) { List<Map<IBond, IBond>> bondMaps = Collections.synchronizedList(new ArrayList<>()); mappings.stream().forEach((mapping) -> { bondMaps.add(makeBondMapOfAtomMap(ac1, ac2, mapping)); }); return bondMaps; }