Fix mismatch between hashCode and equals methods 06/30406/1
authorGary Wu <gary.wu1@huawei.com>
Mon, 30 Nov 2015 22:06:04 +0000 (14:06 -0800)
committerGary Wu <gary.wu1@huawei.com>
Mon, 30 Nov 2015 22:06:04 +0000 (14:06 -0800)
commit3c0f3682094c92ad03c41095f9708bf36e0bd965
treefd52c8bd38caadc3f16d96fb6dd04bff0bc33558
parent52c3de6fcbc908eeb3f08f93e51cc4082d42adfd
Fix mismatch between hashCode and equals methods

Edge and Vertex had incorrect implementations of
hashCode and equals that would cause failures when
used with collections.  Replaced both with new
matching implementations.  Also made the test field
(id) final per best practices.

Change-Id: I0dab173438b1d050a5b9867faa16a255c14222f5
Signed-off-by: Gary Wu <gary.wu1@huawei.com>
nemo-impl/src/main/java/org/opendaylight/nemo/intent/algorithm/Edge.java
nemo-impl/src/main/java/org/opendaylight/nemo/intent/algorithm/Vertex.java