public synchronized Set<Registration> registrationsForSourceKey(String sourceKey) { Set<Registration> result = Collections.unmodifiableSet( this.registrations.stream() .filter(e -> e.getSourceKey().equals(sourceKey)) .collect(Collectors.toSet()) ); return result; }
public synchronized Set<Registration> registrationsForSourceKey(String sourceKey) { Set<Registration> result = Collections.unmodifiableSet( this.registrations.stream() .filter(e -> e.getSourceKey().equals(sourceKey)) .collect(Collectors.toSet()) ); return result; }
public synchronized Set<Registration> registrationsForSourceKey(String sourceKey) { Set<Registration> result = Collections.unmodifiableSet( this.registrations.stream() .filter(e -> e.getSourceKey().equals(sourceKey)) .collect(Collectors.toSet()) ); return result; }
public synchronized void unregisterAll(String sourceKey) { boolean removed = this.registrations.removeIf(e -> e.getSourceKey().equals(sourceKey)); if (removed) { fireListeners(); } }
public synchronized void unregisterAll(String sourceKey) { boolean removed = this.registrations.removeIf(e -> e.getSourceKey().equals(sourceKey)); if (removed) { fireListeners(); } }
public synchronized void unregisterAll(String sourceKey) { boolean removed = this.registrations.removeIf(e -> e.getSourceKey().equals(sourceKey)); if (removed) { fireListeners(); } }
public synchronized void unregisterAll(String sourceKey, String name) { boolean removed = this.registrations.removeIf(e -> e.getSourceKey().equals(sourceKey) && e.getName().equals(name)); if (removed) { fireListeners(); } }
public synchronized void unregisterAll(String sourceKey, String name) { boolean removed = this.registrations.removeIf(e -> e.getSourceKey().equals(sourceKey) && e.getName().equals(name)); if (removed) { fireListeners(); } }
public synchronized void unregisterAll(String sourceKey, String name) { boolean removed = this.registrations.removeIf(e -> e.getSourceKey().equals(sourceKey) && e.getName().equals(name)); if (removed) { fireListeners(); } }