Package snaq.util.jclap
Enum FileOption.FileFilter.AcceptExistance
- java.lang.Object
-
- java.lang.Enum<FileOption.FileFilter.AcceptExistance>
-
- snaq.util.jclap.FileOption.FileFilter.AcceptExistance
-
- All Implemented Interfaces:
Serializable,Comparable<FileOption.FileFilter.AcceptExistance>
- Enclosing class:
- FileOption.FileFilter
public static enum FileOption.FileFilter.AcceptExistance extends Enum<FileOption.FileFilter.AcceptExistance>
Enumeration of possible file existence states to accept.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPT_ALLUse to accept existing or non-existing files.ACCEPT_EXISTINGUse to accept only existing files.ACCEPT_NON_EXISTINGUse to accept only non-existing files.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileOption.FileFilter.AcceptExistancevalueOf(String name)Returns the enum constant of this type with the specified name.static FileOption.FileFilter.AcceptExistance[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCEPT_EXISTING
public static final FileOption.FileFilter.AcceptExistance ACCEPT_EXISTING
Use to accept only existing files.
-
ACCEPT_NON_EXISTING
public static final FileOption.FileFilter.AcceptExistance ACCEPT_NON_EXISTING
Use to accept only non-existing files.
-
ACCEPT_ALL
public static final FileOption.FileFilter.AcceptExistance ACCEPT_ALL
Use to accept existing or non-existing files.
-
-
Method Detail
-
values
public static FileOption.FileFilter.AcceptExistance[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileOption.FileFilter.AcceptExistance c : FileOption.FileFilter.AcceptExistance.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileOption.FileFilter.AcceptExistance valueOf(String name)
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
-
-