directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre-Arnaud Marcelot ...@marcelot.net>
Subject Re: Dn should probably not implement Comparable
Date Tue, 15 Feb 2011 15:43:42 GMT
Given the two existing isParent and isChild methods.

I think it makes totally sense. 
Regards,
Pierre-Arnaud
On mardi 15 février 2011 at 16:23, Emmanuel Lecharny wrote: 
> Hi,
> 
> the compareTo method has a semantic that probably does not applies to 
> the Dn class : either two DNs are equals, or they are different, but 
> they aren't superior or inferior, except if one is the parent of the other.
> 
> As we already have a isParent and isChild methods, I suggest we remove 
> the compareTo() methods (which is never used) and not implemen the 
> Comparable<Dn> interface.
> 
> Thoughts ?
> 
> -- 
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
> 

Mime
View raw message