code: public <T extends CompoundButton> boolean isButtonChecked(Class<T> expectedClass, int index)
  	{
  		return (waiter.waitForAndGetView(index, expectedClass).isChecked());
  	}
docs: Checks if a {@link CompoundButton} with a given index is checked.
  
  @param expectedClass the expected class, e.g. {@code CheckBox.class} or {@code RadioButton.class}
  @param index of the {@code CompoundButton} to check. {@code 0} if only one is available
  @return {@code true} if {@code CompoundButton} is checked and {@code false} if it is not checked