Ejemplo n.º 1
0
  /** used to eliminate exact duplicates in the edge list */
  @Override
  public boolean equals(Object o) {
    if (o instanceof MetadataGraphEdge) {
      MetadataGraphEdge e = (MetadataGraphEdge) o;

      return objectsEqual(version, e.version)
          && ArtifactScopeEnum.checkScope(scope)
              .getScope()
              .equals(ArtifactScopeEnum.checkScope(e.scope).getScope())
          && depth == e.depth;
    }
    return false;
  }
Ejemplo n.º 2
0
 @Override
 public String toString() {
   return "[ "
       + "FROM:("
       + (source == null
           ? "no source"
           : (source.md == null ? "no source MD" : source.md.toString()))
       + ") "
       + "TO:("
       + (target == null
           ? "no target"
           : (target.md == null ? "no target MD" : target.md.toString()))
       + ") "
       + "version="
       + version
       + ", scope="
       + (scope == null ? "null" : scope.getScope())
       + ", depth="
       + depth
       + "]";
 }