fr.inria.coming.core.entities.RevisionDataset Maven / Gradle / Ivy
package fr.inria.coming.core.entities;
import java.util.Collection;
import java.util.Iterator;
/**
*
* @author Matias Martinez
*
*/
public class RevisionDataset {
Collection data = null;
public RevisionDataset() {
super();
}
public RevisionDataset(Collection data) {
super();
this.data = data;
}
public Collection getAllData() {
return data;
}
public void setData(Collection data) {
this.data = data;
}
public Iterator getIterator() {
if (this.data == null)
return null;
return this.data.iterator();
}
public int size() {
return data != null ? data.size() : 0;
}
}