NameFilter

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.

Companion:
object
trait FileFilter
class Object
trait Matchable
class Any

Value members

Abstract methods

def accept(name: String): Boolean

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

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

Concrete methods

def &(filter: NameFilter): NameFilter

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

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

def -(filter: NameFilter): NameFilter

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

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

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.

override 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
def |(filter: NameFilter): NameFilter

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

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

Inherited methods

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.

Inherited from:
FileFilter
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.

Inherited from:
FileFilter
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.

Inherited from:
FileFilter