Bug 58441

Summary: [PATCH] Define equals method for CellRangeAddressBase
Product: POI Reporter: Javen O'Neal <onealj>
Component: SS CommonAssignee: 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

Description Javen O'Neal 2015-09-21 21:25:41 UTC
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.
Comment 1 Javen O'Neal 2015-09-21 21:57:56 UTC
Created attachment 33125 [details]
CellRangeAddressBase with added equals and hashCode methods, including unit tests

Add unit tests for new methods.
Comment 2 Javen O'Neal 2015-10-23 11:18:47 UTC
Implemented in r1710172

Deployed to trunk.