src/main/java/org/jboss/seam/examples/seamcrm/aaa/AuditTools.java
public static <E extends Enum<E>> boolean isChanged(Enum<E> o, Enum<E> n)
    {
        if (base(o, n) != null)
        {
            return base(o, n);
        }
        else
        {
            if (o != n)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
/**
     * Null safe check to see if two Enums are different
     * 
     * @param <E>
     * @param originalEnum
     * @param newEnum
     * @return
     */
Null safe check to see if two Enums are different


Null safe check to see if two Enums are different
public static <E extends Enum<E>> boolean isChanged(Enum<E> o, Enum<E> n)
    {
        if (base(o, n) != null)
        {
            return base(o, n);
        }
        else
        {
            if (o != n)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
public static < E extends Enum < E > > boolean isChanged ( Enum < E > o , Enum < E > n ) { if ( base ( o , n ) != null ) { return base ( o , n ) ; } else { if ( o != n ) { return true ; } else { return false ; } } }
Null safe check to see if two Enums are different
Null safe check to see if two Enums are different