Code example for Map

Methods: clear

0
        } 
    } 
 
    @Implementation 
    public void cancelAll() { 
        notifications.clear();
    } 
 
    public int size() { 
        return notifications.size();
    } 
 
    public Notification getNotification(String tag, int id) {
        return notifications.get(new Key(tag, id));
    } 
 
    public List<Notification> getAllNotifications() {
        return new ArrayList<Notification>(notifications.values());
    } 
     
    private static final class Key {