Skip to content

Instantly share code, notes, and snippets.

@pradhyu
Created May 29, 2020 03:17
Show Gist options
  • Save pradhyu/f104dd4a5525a8b38616efacb214cb3e to your computer and use it in GitHub Desktop.
Save pradhyu/f104dd4a5525a8b38616efacb214cb3e to your computer and use it in GitHub Desktop.
@override
public boolean equals(final Object object) {
if (this == object) {
return true;
}
if (!(object instanceof KnowledgePackageImpl)) {
return false;
}
KnowledgePackageImpl other = (KnowledgePackageImpl) object;
return this.name.equals(other.name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment