public VideoCollection generate ( final int videoCount ) { List < Video > videos = new LinkedList < Video > ( ) ; for ( int i = 0 ; i < videoCount ; i ++ ) { Video video = generateRandomVideo ( ) ; videos . add ( video ) ; } return new VideoCollection ( videos ) ; }
Generate a VideoCollection with random data obtained form VIDEO_INFO map . You don t need o create your own AdapteeCollections . Review ListAdapteeCollection if needed .