Enum FileEventEnum
- java.lang.Object
-
- java.lang.Enum<FileEventEnum>
-
- org.apache.camel.component.file.watch.constants.FileEventEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<FileEventEnum>
public enum FileEventEnum extends Enum<FileEventEnum>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.methvin.watcher.DirectoryChangeEvent.EventType
eventType()
WatchEvent.Kind<Path>
kind()
static FileEventEnum
valueOf(io.methvin.watcher.DirectoryChangeEvent directoryChangeEvent)
Returns the enum constant of this type with the specified name.static FileEventEnum
valueOf(io.methvin.watcher.DirectoryChangeEvent.EventType directoryChangeEventType)
Returns the enum constant of this type with the specified name.static FileEventEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static FileEventEnum
valueOf(WatchEvent.Kind<?> watchEventKind)
Returns the enum constant of this type with the specified name.static FileEventEnum
valueOf(WatchEvent<?> watchEvent)
Returns the enum constant of this type with the specified name.static FileEventEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE
public static final FileEventEnum CREATE
-
DELETE
public static final FileEventEnum DELETE
-
MODIFY
public static final FileEventEnum MODIFY
-
-
Method Detail
-
values
public static FileEventEnum[] 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 (FileEventEnum c : FileEventEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileEventEnum 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
-
valueOf
public static FileEventEnum valueOf(io.methvin.watcher.DirectoryChangeEvent directoryChangeEvent)
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:
directoryChangeEvent
- 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
-
valueOf
public static FileEventEnum valueOf(io.methvin.watcher.DirectoryChangeEvent.EventType directoryChangeEventType)
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:
directoryChangeEventType
- 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
-
valueOf
public static FileEventEnum valueOf(WatchEvent<?> watchEvent)
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:
watchEvent
- 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
-
valueOf
public static FileEventEnum valueOf(WatchEvent.Kind<?> watchEventKind)
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:
watchEventKind
- 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
-
kind
public WatchEvent.Kind<Path> kind()
-
eventType
public io.methvin.watcher.DirectoryChangeEvent.EventType eventType()
-
-