package fr.lille1.maven_data_extraction.core;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * Implementation of a version for a {@link Project} object.
 * 
 * @author Alexandre Bonhomme
 * 
 */
public class Version {

	private final String versionNumber;
	private final File pomFile;
	private final List<Project> listDependents; 

	/**
	 * @param version
	 * @param pom
	 */
	public Version(String version, File pom) {
		this.versionNumber = version;
		this.pomFile = pom;
		this.listDependents = new ArrayList<Project>();
	}

	public String getVersionNumber() {
		return versionNumber;
	}

	public File getPomFile() {
		return pomFile;
	}

	@Override
	public boolean equals(Object obj) {
		Version version = (Version) obj;

		if (version == null) {
			return false;
		}

		if (!version.getVersionNumber().equals(versionNumber)) {
			return false;
		}

		if (!version.getPomFile().equals(pomFile)) {
			return false;
		}

		return true;
	}

	public List<Project> getDependents() {
		return listDependents;
	}
	
	

}

@@ -549,24 +549,230 @@
 ect%3E();%0A%09%7D%0A%0A
+%09public Version(String versionNumber, File pomFile,%0A%09%09%09List%3CProject%3E listDependents) %7B%0A%09%09super();%0A%09%09this.versionNumber = versionNumber;%0A%09%09this.pomFile = pomFile;%0A%09%09this.listDependents = listDependents;%0A%09%7D%0A%0A
 %09public Stri

Add new constructor to Version