SimpleFilter

sealed class SimpleFilter(val acceptFunction: String => Boolean) extends NameFilter

A NameFilter that accepts a name if the predicate acceptFunction accepts it.

trait FileFilter
class Object
trait Matchable
class Any

Value members

Concrete methods

final def accept(name: String): Boolean
override def equals(o: Any): Boolean
Definition Classes
Any
override def hashCode(): Int
Definition Classes
Any
override def toString: String
Definition Classes
Any

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

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

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

Concrete fields

val acceptFunction: String => Boolean