Package com.helger.commons.io.watchdir
Enum EWatchDirAction
- java.lang.Object
-
- java.lang.Enum<EWatchDirAction>
-
- com.helger.commons.io.watchdir.EWatchDirAction
-
- All Implemented Interfaces:
IHasID<String>,Serializable,Comparable<EWatchDirAction>
public enum EWatchDirAction extends Enum<EWatchDirAction> implements IHasID<String>
Enum for fixed actions. Used inIWatchDirCallback.- Since:
- 8.6.6
- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EWatchDirActiongetFromIDOrNull(String sID)StringgetID()Get the unique ID of this object.static EWatchDirActionvalueOf(String name)Returns the enum constant of this type with the specified name.static EWatchDirAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE
public static final EWatchDirAction CREATE
-
DELETE
public static final EWatchDirAction DELETE
-
MODIFY
public static final EWatchDirAction MODIFY
-
-
Method Detail
-
values
public static EWatchDirAction[] 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 (EWatchDirAction c : EWatchDirAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EWatchDirAction 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
-
getID
@Nonnull @Nonempty public String getID()
Description copied from interface:IHasIDGet the unique ID of this object. If the type isStringthan the returned value must match an XML NMToken expression (so e.g. no ':' in the ID)!
-
getFromIDOrNull
@Nullable public static EWatchDirAction getFromIDOrNull(@Nullable String sID)
-
-