public boolean equals(Object o)
    {
        try
        {
            return toString().equals(((Case)o).toString());
        }
        catch(ClassCastException e)
        {
            return false;
        }
    }