public static boolean nullSafeEquals(Object thisvalue, Object othervalue){ return thisvalue == null ? othervalue == null: thisvalue.equals(othervalue); }