private static int getDoubleBondNumber ( IAtomContainer container ) { int doubleNumber = 0 ; for ( IBond bond : container . bonds ( ) ) { if ( bond . getOrder ( ) . equals ( IBond . Order . DOUBLE ) || bond . getOrder ( ) . equals ( IBond . Order . TRIPLE ) ) doubleNumber ++ ; } return doubleNumber ; }
Extract the number of bond with superior ordre .