Package snaq.util.jclap
Enum FileOption.FileFilter.AcceptFileType
java.lang.Object
java.lang.Enum<FileOption.FileFilter.AcceptFileType>
snaq.util.jclap.FileOption.FileFilter.AcceptFileType
- All Implemented Interfaces:
Serializable,Comparable<FileOption.FileFilter.AcceptFileType>,java.lang.constant.Constable
- Enclosing class:
- FileOption.FileFilter
public static enum FileOption.FileFilter.AcceptFileType extends Enum<FileOption.FileFilter.AcceptFileType>
Enumeration of possible types to accept.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPT_ALLUse to accept only files or directories.ACCEPT_DIRUse to accept only directories (not files).ACCEPT_FILEUse to accept only files (not directories). -
Method Summary
Modifier and Type Method Description static FileOption.FileFilter.AcceptFileTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FileOption.FileFilter.AcceptFileType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACCEPT_FILE
Use to accept only files (not directories). -
ACCEPT_DIR
Use to accept only directories (not files). -
ACCEPT_ALL
Use to accept only files or directories.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-