private int getNumberOfHydrogen ( IAtomContainer atomContainer , IAtom atom ) { java . util . List < IBond > bonds = atomContainer . getConnectedBondsList ( atom ) ; IAtom connectedAtom ; int hCounter = 0 ; for ( IBond bond : bonds ) { connectedAtom = bond . getOther ( atom ) ; if ( connectedAtom . getSymbol ( ) . equals ( "H" ) ) { hCounter += 1 ; } } return hCounter ; }
Gets the numberOfHydrogen attribute of the Polarizability object .