@Override void getInheritedNotificationEntries(final Map<String, NotificationEntry> providers) { checkPermission(); for (final Map.Entry<String, NotificationEntry> entry : notificationsUpdater.get(this).entrySet()) { if (entry.getValue().isInherited() && !providers.containsKey(entry.getKey())) { providers.put(entry.getKey(), entry.getValue()); } } }
@Override void getInheritedNotificationEntries(final Map<String, NotificationEntry> providers) { checkPermission(); readLock.lock(); try { if (notifications != null) { for (final Map.Entry<String, NotificationEntry> entry : notifications.entrySet()) { if (entry.getValue().isInherited() && !providers.containsKey(entry.getKey())) { providers.put(entry.getKey(), entry.getValue()); } } } } finally { readLock.unlock(); } }
@Override void getInheritedNotificationEntries(final Map<String, NotificationEntry> providers) { checkPermission(); readLock.lock(); try { if (notifications != null) { for (final Map.Entry<String, NotificationEntry> entry : notifications.entrySet()) { if (entry.getValue().isInherited() && !providers.containsKey(entry.getKey())) { providers.put(entry.getKey(), entry.getValue()); } } } } finally { readLock.unlock(); } }
@Override void getNotificationDescriptions(ListIterator<PathElement> iterator, Map<String, NotificationEntry> providers, boolean inherited) { Map<String, NotificationEntry> temp = new HashMap<String, NotificationEntry>(); target.getNotificationDescriptions(iterator, temp, inherited); for (Map.Entry<String, NotificationEntry> entry : providers.entrySet()) { providers.put(entry.getKey(), new NotificationEntry(entry.getValue().getDescriptionProvider(), entry.getValue().isInherited())); } }
@Override void getNotificationDescriptions(ListIterator<PathElement> iterator, Map<String, NotificationEntry> providers, boolean inherited) { Map<String, NotificationEntry> temp = new HashMap<String, NotificationEntry>(); target.getNotificationDescriptions(iterator, temp, inherited); for (Map.Entry<String, NotificationEntry> entry : providers.entrySet()) { providers.put(entry.getKey(), new NotificationEntry(entry.getValue().getDescriptionProvider(), entry.getValue().isInherited())); } }
@Override void getNotificationDescriptions(ListIterator<PathElement> iterator, Map<String, NotificationEntry> providers, boolean inherited) { Map<String, NotificationEntry> temp = new HashMap<String, NotificationEntry>(); target.getNotificationDescriptions(iterator, temp, inherited); for (Map.Entry<String, NotificationEntry> entry : providers.entrySet()) { providers.put(entry.getKey(), new NotificationEntry(entry.getValue().getDescriptionProvider(), entry.getValue().isInherited())); } }