public static IBond . Order increaseBondOrder ( IBond . Order oldOrder ) { switch ( oldOrder ) { case SINGLE : return Order . DOUBLE ; case DOUBLE : return Order . TRIPLE ; case TRIPLE : return Order . QUADRUPLE ; case QUADRUPLE : return Order . QUINTUPLE ; case QUINTUPLE : return Order . SEXTUPLE ; default : return oldOrder ; } }
Returns the IBond . Order one higher . Does not increase the bond order beyond the QUADRUPLE bond order .