Code example for Map

Methods: values

0
    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 { 
        public final String tag;
        public final int id;
 
        private Key(String tag, int id) {
            this.tag = tag;
            this.id = id;
        } 
 
        @Override 
        public int hashCode() { 
            int hashCode = 17;
            hashCode = 37 * hashCode + (tag == null ? 0 : tag.hashCode());