org.openprovenance.prov.validation.EntityEntry Maven / Gradle / Ivy
The newest version!
package org.openprovenance.prov.validation;
import java.util.HashSet;
import java.util.Set;
public class EntityEntry {
static int count = 0;
private final int myCount;
private final Set generationKey = new HashSet<>();
public void addGenerationKey(String key) {
generationKey.add(key);
}
public Set getGenerationKey() {
return generationKey;
}
private final Set invalidationKey = new HashSet<>();;
public void addInvalidationKey(String key) {
invalidationKey.add(key);
}
public Set getInvalidationKey() {
return invalidationKey;
}
public EntityEntry() {
count++;
myCount = count;
}
public String toString() {
return "<<" + myCount + "," + generationKey + "," + invalidationKey
+ ">>";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy