src/main/java/org/jivesoftware/smack/RosterEntry.java
public boolean equalsDeep(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        RosterEntry other = (RosterEntry) obj;
        if (name == null) {
            if (other.name != null)
                return false;
        } else if (!name.equals(other.name))
            return false;
        if (ask == null) {
            if (other.ask != null)
                return false;
        } else if (!ask.equals(other.ask))
            return false;
        if (subscription == null) {
            if (other.subscription != null)
                return false;
        } else if (!subscription.equals(other.subscription))
            return false;
        if (user == null) {
            if (other.user != null)
                return false;
        } else if (!user.equals(other.user))
            return false;
        return true;
    }
public boolean equalsDeep(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        RosterEntry other = (RosterEntry) obj;
        if (name == null) {
            if (other.name != null)
                return false;
        } else if (!name.equals(other.name))
            return false;
        if (ask == null) {
            if (other.ask != null)
                return false;
        } else if (!ask.equals(other.ask))
            return false;
        if (subscription == null) {
            if (other.subscription != null)
                return false;
        } else if (!subscription.equals(other.subscription))
            return false;
        if (user == null) {
            if (other.user != null)
                return false;
        } else if (!user.equals(other.user))
            return false;
        return true;
    }
Indicates whether some other object is "equal to" this by comparing all
members.
<p>
The {@link #equals(Object)} method returns <code>true</code> if the user
JIDs are equal.

@param obj
the reference object with which to compare.
@return <code>true</code> if this object is the same as the obj argument;
<code>false</code> otherwise.