diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2023-05-03 15:07:34 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2023-05-04 09:59:58 +0100 |
commit | d701ea2c8a9d437846a3c08c103c8b68eaff7334 (patch) | |
tree | f16a7053a7419ddeddd3d71a6b1273e860b3fb21 /cps-path-parser/src/main | |
parent | 08a47195fb3882e396b2dd01b01afa5da42255fb (diff) |
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 <daniel.hanrahan@est.tech>
Change-Id: I2c7e3957e392af36f5230d08c9bbd550f44e7444
Diffstat (limited to 'cps-path-parser/src/main')
0 files changed, 0 insertions, 0 deletions