
pl.gdela.socomo.codemap.MemberDep Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of socomo-core Show documentation
Show all versions of socomo-core Show documentation
Core parts of the tool for visualizing and analyzing source code modularity of a single java project.
package pl.gdela.socomo.codemap;
import org.apache.commons.lang3.builder.CompareToBuilder;
/**
* Directed dependency between two {@link CodeMember}s.
*/
public class MemberDep implements Comparable {
/**
* The member that uses {@code to} member.
*/
public final CodeMember from;
/**
* The member that is used by {@code from} member.
*/
public final CodeMember to;
MemberDep(CodeMember from, CodeMember to) {
this.from = from;
this.to = to;
}
@Override
public String toString() {
return from + " -> " + to;
}
@Override
public int compareTo(MemberDep that) {
return new CompareToBuilder()
.append(from, that.from)
.append(to, that.to)
.toComparison();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy