public static IBond . Stereo convertStereo ( int stereoValue ) { IBond . Stereo stereo = IBond . Stereo . NONE ; if ( stereoValue == 1 ) { // up bond stereo = IBond . Stereo . UP ; } else if ( stereoValue == 6 ) { // down bond stereo = IBond . Stereo . DOWN ; } else if ( stereoValue == 0 ) { // bond has no stereochemistry stereo = IBond . Stereo . NONE ; } else if ( stereoValue == 4 ) { //up or down bond stereo = IBond . Stereo . UP_OR_DOWN ; } else if ( stereoValue == 3 ) { //e or z undefined stereo = IBond . Stereo . E_OR_Z ; } return stereo ; }
Get stereo value as Stereo enum