From: danielhanrahan Date: Wed, 3 May 2023 14:07:34 +0000 (+0100) Subject: Sensible equals and hashCode for FragmentEntity (CPS-1664 #1) X-Git-Tag: 3.3.2~35^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d701ea2c8a9d437846a3c08c103c8b68eaff7334;hp=d701ea2c8a9d437846a3c08c103c8b68eaff7334;p=cps.git Sensible equals and hashCode for FragmentEntity (CPS-1664 #1) Include Anchor and Xpath in equals and hashCode methods for FragmentEntity. (This also requires adding equals and hashCode for AnchorEntity and DataspaceEntity.) The combination of dataspace, anchor, and xpath uniquely identify a fragment/datanode. This allows FragmentEntity objects returned from query across anchors to be stored in Set collections. Performance was observed to be unaffected by the change. Issue-ID: CPS-1664 Signed-off-by: danielhanrahan Change-Id: I2c7e3957e392af36f5230d08c9bbd550f44e7444 ---