Class ObjectComparator


  • public final class ObjectComparator
    extends java.lang.Object
    Deep-equals implementation on primitive wrappers, JSONObject and JSONArray.
    • Method Summary

      Modifier and Type Method Description
      static boolean deepEquals​(java.lang.Object obj1, java.lang.Object obj2)
      Deep-equals implementation on primitive wrappers, JSONObject and JSONArray.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • deepEquals

        public static boolean deepEquals​(java.lang.Object obj1,
                                         java.lang.Object obj2)
        Deep-equals implementation on primitive wrappers, JSONObject and JSONArray.
        Parameters:
        obj1 - the first object to be inspected
        obj2 - the second object to be inspected
        Returns:
        true if the two objects are equal, false otherwise