private CharSequence getHelperText ( final float score ) { if ( ! helperTexts . isEmpty ( ) ) { float interval = 1.0f / helperTexts . size ( ) ; int index = ( int ) Math . floor ( score / interval ) - 1 ; index = Math . max ( index , 0 ) ; index = Math . min ( index , helperTexts . size ( ) - 1 ) ; return helperTexts . get ( index ) ; } return null ; }
Returns the helper text which corresponds to a specific password strength .