Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6891113

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 5.0, 7
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: