enum TypeFilter extends Enum<TypeFilter> implements FileFilter, Optionable<FindOption>
Enum Constant and Description |
---|
Directory |
Other |
RegularFile |
SymbolicLink |
Modifier and Type | Method and Description |
---|---|
FindOption |
getOption() |
static TypeFilter |
valueOf(FindOptions options)
Returns the (first) type filter constant if such an option is set, and
null if no type option is found.
|
static TypeFilter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeFilter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
accept
public static final TypeFilter Directory
public static final TypeFilter RegularFile
public static final TypeFilter SymbolicLink
public static final TypeFilter Other
public static TypeFilter[] values()
for (TypeFilter c : TypeFilter.values()) System.out.println(c);
public static TypeFilter valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic FindOption getOption()
getOption
in interface Optionable<FindOption>
public static TypeFilter valueOf(FindOptions options)
options
- the optionsCopyright © 2024. All rights reserved.