Bug 58667

Summary: Make HSSFRow, XSSFRow, and SXSSFRow implement Comparable interface
Product: POI Reporter: Javen O'Neal <onealj>
Component: SS CommonAssignee: POI Developers List <dev>
Severity: enhancement    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Javen O'Neal 2015-11-29 12:02:47 UTC
Currently XSSFRow implements the Comparable<XSSFRow> interface, HSSFRow doesn't declare that it implements a Comparable interface but has a compareTo(Object) method, and SXSSFRow does neither.

For consistency, all three should implement a Comparable interface. To avoid Java generics craziness, the Row interface will NOT be required to extend Comparable<Row>.
Comment 1 Javen O'Neal 2015-11-29 12:20:09 UTC
Added in r1717054, updated docs in r1717055.

Also changed HSSFRow.hashCode implementation to return a value, which is needed if HSSFRow.toString() is not overridden.