public void addNamingSystems(Bundle bundle) { this.namingSystems.merge(bundle.getId(), setOfNamingSystems(bundle), (set1, set2) -> { Set<NamingSystem> result = new HashSet<>(set1); result.addAll(set2); return result; }); }
public void addNamingSystems(Bundle bundle) { this.namingSystems.merge(bundle.getId(), setOfNamingSystems(bundle), (set1, set2) -> { Set<NamingSystem> result = new HashSet<>(set1); result.addAll(set2); return result; }); }