mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-12 20:35:09 -05:00
* allow SimpleDate == String comparison
This commit is contained in:
parent
dbdb7d2534
commit
478123552f
@ -47,6 +47,8 @@ public class SimpleDate implements Serializable {
|
|||||||
if (obj instanceof SimpleDate) {
|
if (obj instanceof SimpleDate) {
|
||||||
SimpleDate other = (SimpleDate) obj;
|
SimpleDate other = (SimpleDate) obj;
|
||||||
return year == other.year && month == other.month && day == other.day;
|
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);
|
return super.equals(obj);
|
||||||
|
Loading…
Reference in New Issue
Block a user