Java Object Compare areEqual(Object o1, Object o2)

Here you can find the source of areEqual(Object o1, Object o2)

Description

are Equal

License

Open Source License

Declaration

static boolean areEqual(Object o1, Object o2) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    static boolean areEqual(Object o1, Object o2) {
        return !(o1 == null || o2 == null || !o1.equals(o2));
    }// w ww.j  a  va  2 s .c o  m
}

Related

  1. areEqual(final Object x, final Object y)
  2. areEqual(final T object1, final T object2)
  3. areEqual(Object aThis, Object aThat)
  4. areEqual(Object first, Object second)
  5. areEqual(Object first, Object second, boolean equalEvenIfBothNull)
  6. areEqual(Object o1, Object o2)
  7. areEqual(Object o1, Object o2)
  8. areEqual(Object o1, Object o2)
  9. areEqual(Object o1, Object o2)