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

com.prezi.pride.Module Maven / Gradle / Ivy

There is a newer version: 0.12.3
Show newest version
package com.prezi.pride;

import com.prezi.pride.vcs.Vcs;

public class Module implements Named, Comparable {
	private final String name;
	private final Vcs vcs;

	public Module(String name, Vcs vcs) {
		this.name = name;
		this.vcs = vcs;
	}

	@Override
	public int compareTo(Module o) {
		return name.compareTo(o.name);
	}

	@Override
	public String getName() {
		return name;
	}

	public Vcs getVcs() {
		return vcs;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		Module module = (Module) o;
		return name.equals(module.name);
	}

	@Override
	public int hashCode() {
		return name.hashCode();
	}

	@Override
	public String toString() {
		return name;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy