Java Object Equal objectsEqual(Object a, Object b)

Here you can find the source of objectsEqual(Object a, Object b)

Description

objects Equal

License

Apache License

Declaration

@SuppressWarnings("all")
    static public boolean objectsEqual(Object a, Object b) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    @SuppressWarnings("all")
    static public boolean objectsEqual(Object a, Object b) {
        if ((a == null) && (b == null)) {
            return true;
        }/*from w  w  w  .  jav a 2  s.  c o m*/
        if ((a == null) || (b == null)) {
            return false;
        }
        return a.toString().equals(b.toString());
    }
}

Related

  1. isEquals(final Object lhs, final Object rhs)
  2. isEquals(Object object1, Object object2)
  3. nullSafeEquals(Object o1, Object o2)
  4. nullSafeEquals(Object o1, Object o2)
  5. objectsEqual(final Object objectA, final Object objectB)
  6. objectsEqual(Object lhs, Object rhs)
  7. objectsEqual(Object o1, Object o2)
  8. objectsEqual(Object o1, Object o2)
  9. objectsEqual(Object obj1, Object obj2)