public class AcceptOnceFileListFilter<F> extends AbstractFileListFilter<F> implements ReversibleFileListFilter<F>
FileListFilterthat passes files only one time. This can conveniently be used to prevent duplication of files, as is done in
This implementation is thread safe.
|Constructor and Description|
Creates an AcceptOnceFileListFilter based on an unbounded queue.
Creates an AcceptOnceFileListFilter that is based on a bounded queue.
|Modifier and Type||Method and Description|
Subclasses must implement this method.
Indicate that not all files previously passed by this filter (in
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AcceptOnceFileListFilter(int maxCapacity)
maxCapacity- the maximum number of Files to maintain in the 'seen' queue.
public boolean accept(F file)
FileListFilter.filterFiles(Object)have been processed; the file must be in the list of files; it, and all files after it, will be considered to have not been processed and will be considered next time.