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