*/
public class ObjectIdCollection {
- protected ConcurrentHashMap<String, String> importedObjectIds =
- new ConcurrentHashMap<String, String>();
+ private ConcurrentHashMap<String, String> importedObjectIds =
+ new ConcurrentHashMap<>();
public Collection<String> getImportedObjectIds() {
return importedObjectIds.values();
if (items == null) {
return;
}
-
- items.stream().forEach((item) -> {
- importedObjectIds.putIfAbsent(item, item);
- });
-
+ items.forEach(it -> importedObjectIds.putIfAbsent(it, it));
}
/**