question: private void checkStreams ( ) { if ( ( System . currentTimeMillis ( ) - lastChecked ) / 1000 < CHECK_DELAY ) { return ; } lastChecked = System . currentTimeMillis ( ) ; Set < StreamInfo > remove = new HashSet < > ( ) ; for ( StreamInfo info : data ) { if ( ! info . isValid ( ) || ! info . getOnline ( ) ) { remove . add ( info ) ; } } for ( StreamInfo info : remove ) { data . remove ( info ) ; itemRemoved ( info ) ; } if ( remove . isEmpty ( ) ) { listDataChanged ( ) ; } }
target:  Checks all added streams and removes invalid ones.