static int elevation ( IBond bond ) { IBond . Stereo stereo = bond . getStereo ( ) ; if ( stereo == null ) return 0 ; switch ( stereo ) { case UP : case DOWN_INVERTED : return + 1 ; case DOWN : case UP_INVERTED : return - 1 ; default : return 0 ; } }
Access the elevation of a bond .