public static boolean equal ( Object one , Object two ) { return one == null && two == null || ! ( one == null || two == null ) && ( one == two || one . equals ( two ) ) ; }
Does not compare class types .