Here you can find the source of areEquals(Object a, Object b)
public static boolean areEquals(Object a, Object b)
//package com.java2s; //License from project: Apache License public class Main { public static boolean areEquals(Object a, Object b) { if (a == null) { return b == null; }//from w w w . j a v a 2s . co m return a.equals(b); } }