Code example for ConcurrentHashMap

Methods: get

     * @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) {
        if (notification instanceof AlertNotification) {
            AlertNotification alert = (AlertNotification)notification;
            alert.updateProgress(aAlertText, aProgress, aProgressMax);
        if (mForegroundNotification == null && isOngoing(notification)) {
            setForegroundNotification(notificationID, notification);
Connect your IDE to all the code out there  Get Codota for Java