final class ExtensionFilter extends NameFilter
Represents a filter for files that end in a given list of extensions.
- Alphabetic
- By Inheritance
- ExtensionFilter
- NameFilter
- FileFilter
- FileFilter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ExtensionFilter(extensions: String*)
- extensions
the extensions to accept
Value Members
-
def
&(filter: NameFilter): NameFilter
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
- ExtensionFilter → NameFilter
-
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
- ExtensionFilter → FileFilter
-
def
-(filter: NameFilter): NameFilter
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
- ExtensionFilter → NameFilter
-
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
- ExtensionFilter → FileFilter
-
def
accept(name: String): Boolean
Returns
true
to include thename
,false
to exclude it.Returns
true
to include thename
,false
to exclude it.- Definition Classes
- ExtensionFilter → NameFilter
-
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
equals(o: Any): Boolean
- Definition Classes
- ExtensionFilter → AnyRef → Any
- val extensions: String*
-
lazy val
hashCode: Int
- Definition Classes
- ExtensionFilter → AnyRef → Any
-
def
toString(): String
- Definition Classes
- ExtensionFilter → AnyRef → Any
-
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
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
- ExtensionFilter → NameFilter
-
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
- ExtensionFilter → FileFilter