add hashCode for corresponding equals function

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717940 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2015-12-04 11:59:26 +00:00
parent c23bd6c5c9
commit 38b65e7fcb
1 changed files with 5 additions and 0 deletions

View 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();
}
}