public boolean equals(Object arg) { if (!(arg instanceof MConnection)) { return false; } MConnection other = (MConnection) arg; return (sourcePath.equals(other.sourcePath) && targetPath.equals(other.targetPath)); }
public int hashCode() { return sourcePath.hashCode() ^ targetPath.hashCode(); }