]> source.dussan.org Git - poi.git/commitdiff
add hashCode for corresponding equals function
authorJaven O'Neal <onealj@apache.org>
Fri, 4 Dec 2015 11:59:26 +0000 (11:59 +0000)
committerJaven O'Neal <onealj@apache.org>
Fri, 4 Dec 2015 11:59:26 +0000 (11:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717940 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java

index 3e40fe5c7d9143fa952ed424be30bf66422b3ca7..5f37bce45696b4589ddc90192f8bb9642f327e30 100644 (file)
@@ -189,4 +189,9 @@ public class ExcelStyleDateFormatter extends SimpleDateFormat {
         ExcelStyleDateFormatter other = (ExcelStyleDateFormatter) o;
         return dateToBeFormatted == other.dateToBeFormatted;
     }
+    
+    @Override
+    public int hashCode() {
+        return new Double(dateToBeFormatted).hashCode();
+    }
 }