com.mucommander.file.filter
Class PassThroughFileFilter

java.lang.Object
  extended by com.mucommander.file.filter.FileFilter
      extended by com.mucommander.file.filter.PassThroughFileFilter

public class PassThroughFileFilter
extends FileFilter

PassThroughFileFilter is a filter that accepts all files. Depending on the inverted mode, this filter will match all files or no file at all.

Author:
Maxence Bernard

Field Summary
 
Fields inherited from class com.mucommander.file.filter.FileFilter
inverted
 
Constructor Summary
PassThroughFileFilter()
           
PassThroughFileFilter(boolean inverted)
           
 
Method Summary
 boolean accept(AbstractFile file)
          Returns true if the given file was accepted by this filter, false if it was rejected.
 
Methods inherited from class com.mucommander.file.filter.FileFilter
accept, filter, isInverted, match, match, reject, reject, setInverted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassThroughFileFilter

public PassThroughFileFilter()

PassThroughFileFilter

public PassThroughFileFilter(boolean inverted)
Method Detail

accept

public boolean accept(AbstractFile file)
Description copied from class: FileFilter
Returns true if the given file was accepted by this filter, false if it was rejected.

The inverted mode has no effect on the values returned by this method.

Specified by:
accept in class FileFilter
Parameters:
file - the file to test
Returns:
true if the given file was accepted by this FileFilter


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard