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

Add hashCode-support to class ObjectUtils

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.1
    • None
    • None
    • Operating System: All
      Platform: All

    • 28554

    Description

      Class ObjectUtils can compare Objects in a null-safe way calling:
      equals(Object o1, Object o2)
      There should be a similar method for generating a null-safe hashCode:

      public static int hashCode(Object o) {
      return ((o == null) ? 0 : o.hashCode());
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            mario.winterer@scch.at Mario Winterer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: