public < T extends View > boolean searchFor ( Set < T > uniqueViews , Class < T > viewClass , final int index ) { ArrayList < T > allViews = RobotiumUtils . removeInvisibleViews ( viewFetcher . getCurrentViews ( viewClass , true ) ) ; int uniqueViewsFound = ( getNumberOfUniqueViews ( uniqueViews , allViews ) ) ; if ( uniqueViewsFound > 0 && index < uniqueViewsFound ) { return true ; } if ( uniqueViewsFound > 0 && index == 0 ) { return true ; } return false ; }
Searches for a view class .