Package tv.hd3g.fflauncher.enums
Enum OutputFilePresencePolicy
- java.lang.Object
-
- java.lang.Enum<OutputFilePresencePolicy>
-
- tv.hd3g.fflauncher.enums.OutputFilePresencePolicy
-
- All Implemented Interfaces:
Serializable,Comparable<OutputFilePresencePolicy>
public enum OutputFilePresencePolicy extends Enum<OutputFilePresencePolicy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLMUST_BE_A_REGULAR_FILEImplicit MUST_EXISTSMUST_EXISTSNOT_EMPTYImplicit MUST_EXISTS.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Predicate<File>filter()static OutputFilePresencePolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static OutputFilePresencePolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final OutputFilePresencePolicy ALL
-
MUST_EXISTS
public static final OutputFilePresencePolicy MUST_EXISTS
-
MUST_BE_A_REGULAR_FILE
public static final OutputFilePresencePolicy MUST_BE_A_REGULAR_FILE
Implicit MUST_EXISTS
-
NOT_EMPTY
public static final OutputFilePresencePolicy NOT_EMPTY
Implicit MUST_EXISTS. Check file size if file, or dir content count.
-
-
Method Detail
-
values
public static OutputFilePresencePolicy[] 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 (OutputFilePresencePolicy c : OutputFilePresencePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OutputFilePresencePolicy 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
-
-