Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## de.jstacs.io
Class CombinedFileFilter

    java.lang.Object
      de.jstacs.io.CombinedFileFilter

All Implemented Interfaces:
  FileFilter

    public class CombinedFileFilter

extends Object
implements FileFilter

This class allows to combine several `FileFilter`s.

Author:
  Jens Keilwagen
See Also:
  `RegExFilenameFilter`, `DateFileFilter`

Constructor Summary
`CombinedFileFilter(int minAccepted, FileFilter... filter)` Creates an instance that accepts a `File` if at least `minAccepted` filters accept the `File`.

Method Summary
`boolean` | `accept(File pathname)`
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### CombinedFileFilter

    public CombinedFileFilter(int minAccepted,
                              FileFilter... filter)

  Creates an instance that accepts a `File` if at least `minAccepted` filters accept the `File`.

  Parameters:
    `minAccepted` - the minimal number of filters that has to accept a `File`
    `filter` - the filters internally used

Method Detail

### accept

    public boolean accept(File pathname)

  Specified by:
    `accept` in interface `FileFilter`

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD