public NotificationEntry findNotificationEntryById(final String notificationId) {

        // Assertions
        if (notificationId == null) {
            String msg = "Argument 'notificationId' cannot be null";
            throw new IllegalArgumentException(msg);
        }

        // Providing a brute-force implementation for 
        // now;  we can improve it if it becomes important.
        NotificationEntry rslt = null;  // default -- means not present
        for (NotificationCategory category : categories) {
            for (NotificationEntry entry : category.getEntries()) {
                if (notificationId.equals(entry.getId())) {
                    rslt = entry;
                    break;
                }
            }
            if (rslt != null) {
                break;
            }
        }

        return rslt;

    }
public NotificationEntry findNotificationEntryById ( final String notificationId ) { if ( notificationId == null ) { String msg = "Argument 'notificationId' cannot be null" ; throw new IllegalArgumentException ( msg ) ; } NotificationEntry rslt = null ; for ( NotificationCategory category : categories ) { for ( NotificationEntry entry : category . getEntries ( ) ) { if ( notificationId . equals ( entry . getId ( ) ) ) { rslt = entry ; break ; } } if ( rslt != null ) { break ; } } return rslt ; }
Returns the {@link NotificationEntry} with the specified id, or null if
not present.