Q. aboutMutableFileSet

Svata Dedic <[email protected]> Thu, 12 Jun 2003 23:17:12 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>
Hello,


I noticed that MutableFileSet implements List. Thanks to whoever added 
the implements clause :)

I would like to request yet another useful feature to LinkedList:

public void move(int indexFrom, int indexTo);
public void setOrder(int[] permutation);

These operations are performed quite often on ordered collections (such 
as MutableFileSet is); but unlike FileSets, ordinary Lists do not fire 
events during each operation. Without at least move(), it is not 
feasible to reorder fileset's contents without outside world observing 
the fileset in an inconsistent (== without all the elements) content.

Thanks,
-Svata