/** * Returns the DN normalized by removal of non-significant space characters. * * @see <a href="../../../../api/com/novell/ldap/LDAPDN.html#normalize(java.lang.String)"> com.novell.ldap.LDAPDN.normalize(String)</a> */ public static String normalize(String dn){ return com.novell.ldap.LDAPDN.normalize(dn); }
/** * Compares this object with the specified object for order. * * <p>Ordering is determined by comparing normalized DN values * (see {@link LDAPEntry#getDN() } and * {@link LDAPDN#normalize(java.lang.String)}) using the * compareTo method of the String class. </p> * * @param entry Entry to compare to * * @return A negative integer, zero, or a positive integer as this * object is less than, equal to, or greater than the specified object. */ public int compareTo(Object entry){ return LDAPDN.normalize( this.dn ).compareTo( LDAPDN.normalize( ((LDAPEntry)entry).dn ) ); }