de.julielab.medline.IDocumentDeleter Maven / Gradle / Ivy
package de.julielab.medline;
import org.apache.commons.configuration2.HierarchicalConfiguration;
import org.apache.commons.configuration2.tree.ImmutableNode;
import java.util.List;
import java.util.Set;
public interface IDocumentDeleter {
void deleteDocuments(List docIds);
void configure(HierarchicalConfiguration deletionConfiguration) throws MedlineDocumentDeletionException;
default boolean hasName(String... names) {
Set givenNames = getNames();
for (int i = 0; i < names.length; i++) {
String name = names[i];
if (givenNames.contains(name))
return true;
}
return false;
}
Set getNames();
}