Skip to content
Permalink
Browse files
  • Loading branch information
randgalt committed Apr 18, 2019
2 parents e74584f + 5ff7952 commit 6f0f5f2d47294c0f923ae6d004296e6e3c8e11a7
Showing 1 changed file with 43 additions and 0 deletions.
@@ -154,6 +154,49 @@ public String getNode()
{
return node;
}

@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + node.hashCode();
result = prime * result + path.hashCode();
return result;
}

@Override
public boolean equals(Object obj)
{
if (this == obj)
{
return true;
}
if (obj == null)
{
return false;
}
if (getClass() != obj.getClass())
{
return false;
}
PathAndNode other = (PathAndNode) obj;
if (!node.equals(other.node))
{
return false;
}
if (!path.equals(other.path))
{
return false;
}
return true;
}

@Override
public String toString()
{
return "PathAndNode [path=" + path + ", node=" + node + "]";
}
}

/**

0 comments on commit 6f0f5f2

Please sign in to comment.