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

edu.stanford.protege.webprotege.change.ChangeApplicationResult Maven / Gradle / Ivy

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

import com.google.common.collect.ImmutableList;
import edu.stanford.protege.webprotege.HasSubject;
import edu.stanford.protege.webprotege.owlapi.RenameMap;

import javax.annotation.Nonnull;
import java.util.List;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * Author: Matthew Horridge
* Stanford University
* Bio-Medical Informatics Research Group
* Date: 22/02/2013 */ public class ChangeApplicationResult implements HasSubject { @Nonnull private final RenameMap renameMap; @Nonnull private final List changeList; @Nonnull private final S subject; public ChangeApplicationResult(@Nonnull S subject, @Nonnull List changeList, @Nonnull RenameMap renameMap) { this.subject = checkNotNull(subject); this.changeList = ImmutableList.copyOf(checkNotNull(changeList)); this.renameMap = checkNotNull(renameMap); } @Nonnull public RenameMap getRenameMap() { return renameMap; } @Nonnull public List getChangeList() { return changeList; } @Nonnull @Override public S getSubject() { return subject; } }