[YANGTOOLS-1378] Codify AbstractModelStatement's hashCode/equals/toString Created: 08/Dec/21  Updated: 13/Dec/21  Resolved: 08/Dec/21

Status: Resolved
Project: yangtools
Component/s: model-spi
Affects Version/s: None
Fix Version/s: 8.0.0, 7.0.10

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

We have a lot of statement implementations, some of which have a toString() method, but most are lacking it. Furthermore most of our statements use identity hashCode()/equals(), but some actually compare their state.

Codify these three methods by making them final in AbstractModelStatement, providing a reasonable toString() for all statement implementations as well as nailing down the fact we always use identity for comparisons.


Generated at Wed Feb 07 20:55:59 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.