public static IBond . Order getMaximumBondOrder ( IBond . Order firstOrder , IBond . Order secondOrder ) { if ( firstOrder == Order . UNSET ) { if ( secondOrder == Order . UNSET ) throw new IllegalArgumentException ( "Both bond orders are unset" ) ; return secondOrder ; } if ( secondOrder == Order . UNSET ) { if ( firstOrder == Order . UNSET ) throw new IllegalArgumentException ( "Both bond orders are unset" ) ; return firstOrder ; } if ( isHigherOrder ( firstOrder , secondOrder ) ) return firstOrder ; else return secondOrder ; }
Returns the maximum bond order for the two bond orders .