Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-198

[lang] New method for EqualsBuilder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2
    • None
    • None
    • Operating System: other
      Platform: Other

    • 39315

    Description

      I have modified reflectionEquals. The new signature adds the ability to exclude
      a list of fields from testing.

      reflectionEquals(Object lhs, Object rhs, String[] excludeFields)

      This is useful when the occasional field is to be excluded when many fields need
      to be tested. The alternative is to hard-code each field in the equals method
      and hope that if an additional field is added, the equals method is updated.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pete@gieser.org Pete Gieser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: