trait NameFilter extends FileFilter

A filter on Strings. This also functions as a FileFilter by applying the String filter to the value of a File's getName.

Linear Supertypes
FileFilter, java.io.FileFilter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NameFilter
  2. FileFilter
  3. FileFilter
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def accept(name: String): Boolean

    Returns true to include the name, false to exclude it.

Concrete Value Members

  1. def &(filter: NameFilter): NameFilter

    Constructs a filter that accepts a String if it matches both this filter and the given filter.

  2. def &&(filter: FileFilter): FileFilter

    Constructs a filter that accepts a File if it matches both this filter and the given filter.

    Constructs a filter that accepts a File if it matches both this filter and the given filter.

    Definition Classes
    FileFilter
  3. def -(filter: NameFilter): NameFilter

    Constructs a filter that accepts a String if it matches this filter but not the given filter.

  4. def --(filter: FileFilter): FileFilter

    Constructs a filter that accepts a File if it matches this filter but does not match the given filter.

    Constructs a filter that accepts a File if it matches this filter but does not match the given filter.

    Definition Classes
    FileFilter
  5. final def accept(file: File): Boolean

    Accepts File if its getName method is accepted by this filter.

    Accepts File if its getName method is accepted by this filter.

    Definition Classes
    NameFilter → FileFilter
  6. def unary_-: NameFilter

    Constructs a filter that accepts a String if it does not match this filter.

    Constructs a filter that accepts a String if it does not match this filter.

    Definition Classes
    NameFilterFileFilter
  7. def |(filter: NameFilter): NameFilter

    Constructs a filter that accepts a String if it matches either this filter or the given filter.

  8. def ||(filter: FileFilter): FileFilter

    Constructs a filter that accepts a File if it matches either this filter or the given filter.

    Constructs a filter that accepts a File if it matches either this filter or the given filter.

    Definition Classes
    FileFilter