All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openprovenance.prov.validation.ActivityEntry Maven / Gradle / Ivy

The newest version!
package org.openprovenance.prov.validation;

import java.util.HashSet;
import java.util.Set;

public class ActivityEntry {
    static int count = 0;

    private final int myCount;

    private final Set startKey = new HashSet<>();

    public void addStartKey(String key) {
        this.startKey.add(key);
    }

    public Set getStartKey() {
        return startKey;
    }

    private final Set endKey = new HashSet<>();

    public void addEndKey(String key) {
        this.endKey.add(key);
    }

    public Set getEndKey() {
        return endKey;
    }

    public ActivityEntry() {
        count++;
        myCount = count;
    }

    public String toString() {
        return "<<" + myCount + "," + startKey + "," + endKey + ">>";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy