Summary: | [PATCH] Define equals method for CellRangeAddressBase | ||
---|---|---|---|
Product: | POI | Reporter: | Javen O'Neal <onealj> |
Component: | SS Common | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Bug Depends on: | |||
Bug Blocks: | 58348 | ||
Attachments: |
CellRangeAddressBase with added equals and hashCode methods
CellRangeAddressBase with added equals and hashCode methods, including unit tests |
Created attachment 33125 [details]
CellRangeAddressBase with added equals and hashCode methods, including unit tests
Add unit tests for new methods.
|
Created attachment 33124 [details] CellRangeAddressBase with added equals and hashCode methods CellRangeAddressBase doesn't have an equals method. Equals method should determine if two CellRangeAddressBases refer to the same area by comparing _firstRow, _lastRow, _firstCol, _lastCol. Since it's possible for (_firstRow and _lastRow) and (_firstCol and _lastCol) to become inverted, a comparison should sort the fields.