On 12/9/2010 12:52 PM, Emmanuel Lecharny wrote:
On 12/9/10 6:46 PM, Antoine Levy-Lambert wrote:
Thanks Emmanuel and Alex and Pierre-Arnaud and Kiran !
I have a small issue with the Set<Authenticator>. Does it have to be a
TreeSet ? I don't think so.
I am very ignorant concerning collection/set classes. Change this the
way which makes sense.
An Hashset should be just fine (otherwise, you either need to have the
Authenticator implement Comparable, _or_ trick the JVM by first
creating a HashSet and inject it into the TreeSet.
I'd rather use an HashSet here - all in all, it's not like we will
ever have 10K authenticators, are we ? -
Fine. We are not going to have 10 k authenticators.
Regards,
Antoine