Emmanuel Lecharny wrote:
Andrea Francia wrote:
Niklas Gustavsson wrote:
On Thu, Oct 9, 2008 at 7:43 PM, Andrea Francia
<[EMAIL PROTECTED]> wrote:
FtpFile interface has this method:
/**
* List file objects. If not a directory or does not exist, null
will be
* returned. Files must be returned in alphabetical order.
*/
FtpFile[] listFiles();
Why not:
List<FtpFile> listFiles();
This is a remain from before Java 1.5. I would be happy to make this
change.
What about ?
Set<FtpFile> listFiles();
The same file could not be contained more than one time.
And it will also have the other advantage to makes Andrea's wish to
have this method returning an undordered list accomplished ;)
Ops, is not for that .... you can return SortedSet.... :)
--
Andrea Francia
http://andreafrancia.blogspot.com/2008/07/colinux-linux-dentro-windows.html