Here you can find the source of areEqual(Object parameter, Object otherParameter)
public static boolean areEqual(Object parameter, Object otherParameter)
//package com.java2s; //License from project: Apache License public class Main { public static boolean areEqual(Object parameter, Object otherParameter) { if (parameter == null && otherParameter == null) return true; if (parameter != null && otherParameter == null) return false; if (parameter == null && otherParameter != null) return false; return parameter.equals(otherParameter); }//from w ww .j a v a2 s . co m }