com.prezi.pride.Module Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pride-core Show documentation
Show all versions of pride-core Show documentation
Pride manages multiple Gradle modules as a single Gradle project
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