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

edu.stanford.protege.webprotege.merge.Diff Maven / Gradle / Ivy

The newest version!
package edu.stanford.protege.webprotege.merge;

import com.google.common.collect.ImmutableSet;

import java.io.Serializable;

/**
 * Matthew Horridge
 * Stanford Center for Biomedical Informatics Research
 * 26/01/15
 */
public class Diff implements  Serializable {

    private ImmutableSet added;

    private ImmutableSet removed;

    private Diff() {
    }

    public Diff(ImmutableSet added, ImmutableSet removed) {
        this.added = added;
        this.removed = removed;
    }
    

    public ImmutableSet getAdded() {
        return added;
    }

    public ImmutableSet getRemoved() {
        return removed;
    }

    public boolean isEmpty() {
        return added.isEmpty() && removed.isEmpty();
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy