> I guess it expects only a List type object. I can work around this by > converting the Set into a List and then provide it but felt somehow this is > a limitation. How can I work with generic collections? > Any thoughts much appreciated
No, because ordering requires the indexing a List has. In theory, you could make an IteratorView which uses the Iterator from a generic collection, but you would abandon things like paging, sorting etc. which rely on indexability. - Tor Iver --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
