|Equals and HashCode in ModelElements [message #839921]
||Mon, 09 April 2012 12:18
| Nepomuk Seiler
Registered: December 2010
I was having a look at the generated model classes and found out
that equals and hashCode aren't implemented.
My problem is:
I have a list of Nodes which have all a attribute id.
To validate the nodes I want to check if every id attribute
is unique. The code I imagine should look like this
INode node1 = ...
INode node2 = ...
node1.equals(node2) == node1.getId().getContent().equals(node2.getid().getContent());
Powered by FUDForum
. Page generated in 0.02606 seconds