ExtensionFilter

final class ExtensionFilter(val extensions: String*) extends NameFilter

Represents a filter for files that end in a given list of extensions.

Value parameters:
extensions

the extensions to accept

Companion:
object
trait FileFilter
class Object
trait Matchable
class Any

Value members

Concrete methods

override def &(filter: NameFilter): NameFilter

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

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
override 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
override 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.

Definition Classes
override def equals(o: Any): Boolean
Definition Classes
Any
override def toString: String
Definition Classes
Any
override def |(filter: NameFilter): NameFilter

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
override 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

Inherited methods

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.

Inherited from:
NameFilter
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
Inherited from:
NameFilter

Concrete fields

val extensions: String*
lazy override val hashCode: Int