public static boolean hasDeuteratedEquiv ( Atom atom , Group currentGroup ) { if ( atom . getElement ( ) == Element . H && currentGroup . hasAtom ( replaceFirstChar ( atom . getName ( ) , ' ' , ' ' ) ) ) { // If it's hydrogen and has a deuterated brother return true ; } return false ; }
Check to see if a Hydrogen has a Deuterated brother in the group .