public static IBond . Order createBondOrder ( double bondOrder ) { for ( IBond . Order order : IBond . Order . values ( ) ) { if ( order . numeric ( ) . doubleValue ( ) == bondOrder ) return order ; } return null ; }
Convenience method to convert a double into an IBond . Order . Returns NULL if the bond order is not 1 . 0 2 . 0 3 . 0 and 4 . 0 .