@SuppressWarnings("unchecked")
	public boolean isTextChecked(String text){
		if(config.commandLogging){
			Log.d(config.commandLoggingTag, "isTextChecked(\""+text+"\")");
		}
		
		waiter.waitForViews(false, CheckedTextView.class, CompoundButton.class);

		if(viewFetcher.getCurrentViews(CheckedTextView.class, true).size() > 0 && checker.isCheckedTextChecked(text))
			return true;

		if(viewFetcher.getCurrentViews(CompoundButton.class, true).size() > 0 && checker.isButtonChecked(CompoundButton.class, text))
			return true;

		return false;
	}
@ SuppressWarnings ( "unchecked" ) public boolean isTextChecked ( String text ) { if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "isTextChecked(\"" + text + "\")" ) ; } waiter . waitForViews ( false , CheckedTextView . class , CompoundButton . class ) ; if ( viewFetcher . getCurrentViews ( CheckedTextView . class , true ) . size ( ) > 0 && checker . isCheckedTextChecked ( text ) ) return true ; if ( viewFetcher . getCurrentViews ( CompoundButton . class , true ) . size ( ) > 0 && checker . isButtonChecked ( CompoundButton . class , text ) ) return true ; return false ; }
Checks if the specified text is checked.

@param text the text that the {@link CheckedTextView} or {@link CompoundButton} objects display, specified as a regular expression
@return {@code true} if the specified text is checked and {@code false} if it is not checked