public Notification getByID ( String id ) { //TODO maybe SORT_By_ID then make a better array searching algorithm for ( Notification n : NotificationManager . notifications ) { if ( n . getId ( ) . equals ( id ) ) { logger . fine ( "...found a match for getByID query. With id: " + id ) ; return n ; } } logger . fine ( "There is no notification that match the given ID: " + id ) ; return null ; }
Search for a notification with the given id .