More methods for java.util.Objects: deepEquals, hash, toString with default

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 7
    • Affects Version/s: 5.0, 7
    • Component/s: core-libs
    • None
    • b77
    • generic, x86
    • generic, linux

      Further discussion on the corelibs mailing list about utility methods suitable for java.util.Objects revealed several worthwhile additions including:

      static toString(Object o, String default): toString taking a default if o is null
      static deepEquals(Object a, Object b): run deep equals on arbritrary arguments
      static hash(Object... objs): compute a hash code for inputs

            Assignee:
            Joe Darcy
            Reporter:
            Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: