poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1717940 - /poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java
Date Fri, 04 Dec 2015 11:59:27 GMT
Author: onealj
Date: Fri Dec  4 11:59:26 2015
New Revision: 1717940

URL: http://svn.apache.org/viewvc?rev=1717940&view=rev
Log:
add hashCode for corresponding equals function

Modified:
    poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java

Modified: poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java?rev=1717940&r1=1717939&r2=1717940&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java Fri Dec  4
11:59:26 2015
@@ -189,4 +189,9 @@ public class ExcelStyleDateFormatter ext
         ExcelStyleDateFormatter other = (ExcelStyleDateFormatter) o;
         return dateToBeFormatted == other.dateToBeFormatted;
     }
+    
+    @Override
+    public int hashCode() {
+        return new Double(dateToBeFormatted).hashCode();
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message