removed unnecessary plugin node wrapper

Removed PluginNodeHashWrapper and moved equals and hashCode logic into PluginNode
This commit is contained in:
Sebastian Sdorra
2020-01-16 10:27:34 +01:00
parent 2d755aae9a
commit 3602976ff1
2 changed files with 15 additions and 27 deletions

View File

@@ -175,6 +175,17 @@ public final class PluginNode
this.wrapper = wrapper;
}
@Override
public int hashCode() {
return getId().hashCode();
}
@Override
public boolean equals(Object obj) {
return obj instanceof PluginNode
&& ((PluginNode) obj).getId().equals(this.getId());
}
@Override
public String toString() {
return plugin.getPath().toString() + " -> " + children;