private void setMaxBondOrder ( IBond bond , IAtomContainer atomContainer ) throws CDKException { if ( bondOrderCanBeIncreased ( bond , atomContainer ) ) { if ( bond . getOrder ( ) != IBond . Order . QUADRUPLE ) bond . setOrder ( BondManipulator . increaseBondOrder ( bond . getOrder ( ) ) ) ; else throw new CDKException ( "Can't increase a quadruple bond!" ) ; } }
This method decides the highest bond order that the bond can have and set it to that .