Compares this LdapName with the specified Object for order. Returns a negative integer, zero, or a positive integer as this Name is less than, equal to, or greater than the given Object.
If obj is null or not an instance of LdapName, ClassCastException is thrown.
Ordering of LDAP names follows the lexicographical rules for string comparison, with the extension that this applies to all the RDNs in the LDAP name. All the RDNs are lined up in their specified order and compared lexicographically. See {@link Rdn#compareTo(Object obj) Rdn.compareTo(Object obj)}for RDN comparison rules.
If this LDAP name is lexicographically lesser than obj, a negative number is returned. If this LDAP name is lexicographically greater than obj, a positive number is returned.
@param obj The non-null LdapName instance to compare against.
@return A negative integer, zero, or a positive integer as this Nameis less than, equal to, or greater than the given obj.
@exception ClassCastException if obj is null or not a LdapName.