private static void onPrintTweets ( final List < Tweets > tweets ) { for ( Iterator < Tweets > iterator = tweets . iterator ( ) ; iterator . hasNext ( ) ; ) { int counter = 1 ; while ( iterator . hasNext ( ) ) { logger . info ( "\n" ) ; logger . info ( "\t\t Tweet No:#" + counter ++ ) ; Tweets rec = ( Tweets ) iterator . next ( ) ; logger . info ( "\t\t tweet is ->" + rec . getBody ( ) ) ; logger . info ( "\t\t Tweeted at ->" + rec . getTweetDate ( ) ) ; if ( rec . getVideos ( ) != null ) { logger . info ( "\t\t Tweeted Contains Video ->" + rec . getVideos ( ) . size ( ) ) ; for ( Iterator < Video > iteratorVideo = rec . getVideos ( ) . iterator ( ) ; iteratorVideo . hasNext ( ) ; ) { Video video = ( Video ) iteratorVideo . next ( ) ; logger . info ( video ) ; } } } } }
On print tweets event .