Skip to content
Snippets Groups Projects
Commit 16c7670b authored by Piotr Gawron's avatar Piotr Gawron
Browse files

methods should be generalized

parent e5271501
No related branches found
No related tags found
1 merge request!717Resolve "process vcard data that can appear in model annotations"
......@@ -550,7 +550,7 @@ public interface Model {
public void addAuthor(Author author);
void addAuthors(Set<Author> authorsFromRdf);
void addAuthors(Collection<Author> authorsFromRdf);
public List<Author> getAuthors();
......@@ -562,7 +562,7 @@ public interface Model {
public List<Calendar> getModificationDates();
void addModificationDates(List<Calendar> modificationDatesFromRdf);
void addModificationDates(Collection<Calendar> modificationDatesFromRdf);
}
......@@ -721,14 +721,14 @@ public class ModelFullIndexed implements Model {
}
@Override
public void addAuthors(Set<Author> authors) {
public void addAuthors(Collection<Author> authors) {
for (Author author : authors) {
addAuthor(author);
}
}
@Override
public void addModificationDates(List<Calendar> modificationDates) {
public void addModificationDates(Collection<Calendar> modificationDates) {
for (Calendar calendar : modificationDates) {
addModificationDate(calendar);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment