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
.
- Alphabetic
- By Inheritance
- NameFilter
- FileFilter
- FileFilter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
accept(name: String): Boolean
Returns
true
to include thename
,false
to exclude it.
Concrete Value Members
-
def
&(filter: NameFilter): NameFilter
Constructs a filter that accepts a
String
if it matches both this filter and the givenfilter
. -
def
&&(filter: FileFilter): FileFilter
Constructs a filter that accepts a
File
if it matches both this filter and the givenfilter
.Constructs a filter that accepts a
File
if it matches both this filter and the givenfilter
.- Definition Classes
- FileFilter
-
def
-(filter: NameFilter): NameFilter
Constructs a filter that accepts a
String
if it matches this filter but not the givenfilter
. -
def
--(filter: FileFilter): FileFilter
Constructs a filter that accepts a
File
if it matches this filter but does not match the givenfilter
.Constructs a filter that accepts a
File
if it matches this filter but does not match the givenfilter
.- Definition Classes
- FileFilter
-
final
def
accept(file: File): Boolean
Accepts
File
if itsgetName
method is accepted by this filter.Accepts
File
if itsgetName
method is accepted by this filter.- Definition Classes
- NameFilter → FileFilter
-
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
- NameFilter → FileFilter
-
def
|(filter: NameFilter): NameFilter
Constructs a filter that accepts a
String
if it matches either this filter or the givenfilter
. -
def
||(filter: FileFilter): FileFilter
Constructs a filter that accepts a
File
if it matches either this filter or the givenfilter
.Constructs a filter that accepts a
File
if it matches either this filter or the givenfilter
.- Definition Classes
- FileFilter