public PushedNotifications getFailedNotifications ( ) { PushedNotifications filteredList = new PushedNotifications ( this ) ; for ( PushedNotification notification : this ) { if ( ! notification . isSuccessful ( ) ) { filteredList . add ( notification ) ; } } return filteredList ; }
Filter a list of pushed notifications and return only the ones that failed .