Class ObjectComparator


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

      • deepEquals

        public static boolean deepEquals​(Object obj1,
                                         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