Java Object Compare areEqual(Object obj, Object obj2)

Here you can find the source of areEqual(Object obj, Object obj2)

Description

are Equal

License

Open Source License

Declaration

public static boolean areEqual(Object obj, Object obj2) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean areEqual(Object obj, Object obj2) {
        if (obj == null) {
            return obj2 == null;
        } else {/* w  w w. j  a  v  a 2  s . com*/
            return obj.equals(obj2);
        }
    }
}

Related

  1. areEqual(Object o1, Object o2)
  2. areEqual(Object o1, Object o2)
  3. areEqual(Object o1, Object o2)
  4. areEqual(Object o1, Object o2)
  5. areEqual(Object o1, Object o2)
  6. areEqual(Object obj1, Object obj2)
  7. areEqual(Object obj1, Object obj2)
  8. areEqual(Object obj1, Object obj2)
  9. areEqual(Object object1, Object object2)