commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yathos UG (JIRA)" <>
Subject [jira] [Updated] (LANG-1034) Recursive and reflective equals builder
Date Sat, 15 Aug 2015 17:17:45 GMT


yathos UG updated LANG-1034:
    Attachment: LANG-1034.1.patch

Our patch LANG-1034.1 adds requested improvement by allowing optional recursive descend.

> Recursive and reflective equals builder
> ---------------------------------------
>                 Key: LANG-1034
>                 URL:
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.builder.*
>            Reporter: Duncan Jones
>            Assignee: Duncan Jones
>             Fix For: Patch Needed
>         Attachments: LANG-1034.1.patch
> The current implementation of {{EqualsBuilder.reflectionEquals()}} uses object equality
to test reference fields found in the class. It may be helpful to offer a method that recursively
builds {{.equals()}} methods for each field and uses that to perform the comparison.
> This functionality could be further extended by accepting a list of classes to include/exclude.
Classes that are excluded would use the normal object equality.

This message was sent by Atlassian JIRA

View raw message