Markus Malkusch created LANG-1054:
-------------------------------------
Summary: Support java.util.regex.Pattern in EqualsBuilder and
HashCodeBuilder
Key: LANG-1054
URL: https://issues.apache.org/jira/browse/LANG-1054
Project: Commons Lang
Issue Type: Wish
Components: lang.builder.*
Reporter: Markus Malkusch
Priority: Minor
Hi
Pattern is an annoyance because it doesn't implement equals() nor hashCode().
I.e. EqualsBuilder.append(Object, Object) will never set EqualsBuilder.isEquals
to true for e.g.:
{code}
builder.append(Pattern.compile("foo"), Pattern.compile("foo"));
{code}
It would be nice to have an EqualsBuilder which compares Pattern.pattern and
Pattern.flags instead of calling Pattern.equals().
Same for HashCodeBuilder.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)