public boolean equals (Object obj)

Overriding: java.lang.Object

Compares the specified Object with this Rdn for equality. Returns true if the given object is also a Rdn and the two Rdns represent the same attribute type and value mappings. The order of components in multi-valued Rdns (such as "ou=Sales+cn=Bob") is not significant.

Type and value equality matching is done as below:

If obj is null or not an instance of Rdn, false is returned.

Parameters:
obj    object to be compared for equality with this Rdn.

Returns:  true if the specified object is equal to this Rdn.

See also:
hashCode()