public < T extends View > int getNumberOfUniqueViews ( Set < T > uniqueViews , ArrayList < T > views ) { for ( int i = 0 ; i < views . size ( ) ; i ++ ) { uniqueViews . add ( views . get ( i ) ) ; } numberOfUniqueViews = uniqueViews . size ( ) ; return numberOfUniqueViews ; }
Returns the number of unique views .