Code example for ConcurrentHashMap

Methods: get

0
     * @param aProgress      progress of item being updated 
     * @param aProgressMax   max progress of item being updated 
     * @param aAlertText     text of the notification 
     */ 
    public void update(int notificationID, long aProgress, long aProgressMax, String aAlertText) {
        final Notification notification = mNotifications.get(notificationID);
        if (notification == null) {
            return; 
        } 
 
        if (notification instanceof AlertNotification) {
            AlertNotification alert = (AlertNotification)notification;
            alert.updateProgress(aAlertText, aProgress, aProgressMax);
        } 
 
        if (mForegroundNotification == null && isOngoing(notification)) {
            setForegroundNotification(notificationID, notification);
        } 
    } 
 
    /**