Code example for ConcurrentHashMap

Methods: isEmpty

0
     * removed. 
     * 
     * @return whether all notifications have been removed 
     */ 
    public boolean isDone() { 
        return mNotifications.isEmpty();
    } 
 
    /** 
     * Determines whether a notification should hold a foreground service to keep Gecko alive 
     * 
     * @param notificationID the id of the notification to check 
     * @return               whether the notification is ongoing 
     */ 
    public boolean isOngoing(int notificationID) {
        final Notification notification = mNotifications.get(notificationID);
        return isOngoing(notification);
    } 
 
    /** 
     * Determines whether a notification should hold a foreground service to keep Gecko alive