public static boolean objectsNotEqual(final Object one, final Object two) {

        return (one == null) ? (two != null) : (!one.equals(two));

    }
public static boolean objectsNotEqual ( final Object one , final Object two ) { return ( one == null ) ? ( two != null ) : ( ! one . equals ( two ) ) ; }
Compares two objects for equality.

@param one
the first object
@param two
the second object
@return <code>true</code> if the two objects are <b>not </b> equal,
othewise <code>false</code>