public void incrementUnreadNotification ( final AbstractNotificationView view , final EventContainer < ? > newEventContainer ) { if ( ! view . equals ( currentView ) || newEventContainer . getUnreadNotificationMessageKey ( ) == null ) { return ; } NotificationUnreadValue notificationUnreadValue = unreadNotifications . get ( newEventContainer . getClass ( ) ) ; if ( notificationUnreadValue == null ) { notificationUnreadValue = new NotificationUnreadValue ( 0 , newEventContainer . getUnreadNotificationMessageKey ( ) ) ; unreadNotifications . put ( newEventContainer . getClass ( ) , notificationUnreadValue ) ; } notificationUnreadValue . incrementUnreadNotifications ( ) ; unreadNotificationCounter ++ ; refreshCaption ( ) ; }
Increment the counter .