Here you can find the source of areEqual(T obj1, T obj2)
public static <T> boolean areEqual(T obj1, T obj2)
//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 }