Java Object Compare areEqual(T obj1, T obj2)

Here you can find the source of areEqual(T obj1, T obj2)

Description

are Equal

License

Open Source License

Declaration

public static <T> boolean areEqual(T obj1, T obj2) 

Method Source Code

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

public class Main {
    public static <T> boolean areEqual(T obj1, T obj2) {
        return (obj1 != null) && obj1.equals(obj2);
    }//w w w .  ja va2  s.  com
}

Related

  1. areEqual(Object object1, Object object2)
  2. areEqual(Object one, Object another)
  3. areEqual(Object parameter, Object otherParameter)
  4. areEqual(Object value, Object otherValue)
  5. areEqual(Object value1, Object value2)
  6. areEqual(T obj1, V obj2)
  7. areEqualComparables(T object1, T object2)
  8. areEqualEvenIfBothNull(Object first, Object second)
  9. areEquals(final Object o1, final Object o2)