1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-10 11:25:04 -05:00

* allow SimpleDate == String comparison

This commit is contained in:
Reinhard Pointner 2014-05-31 16:49:14 +00:00
parent dbdb7d2534
commit 478123552f

View File

@ -47,6 +47,8 @@ public class SimpleDate implements Serializable {
if (obj instanceof SimpleDate) {
SimpleDate other = (SimpleDate) obj;
return year == other.year && month == other.month && day == other.day;
} else if (obj instanceof CharSequence) {
return this.toString().equals(obj.toString());
}
return super.equals(obj);