public enum FileEventType extends Enum<FileEventType>
| Enum Constant and Description |
|---|
CREATE
Represents the event of a file being created
|
DELETE
Represents the event of a file being deleted
|
UPDATE
Represents the event of a file being updated
|
| Modifier and Type | Method and Description |
|---|---|
WatchEvent.Kind |
asEventKind() |
static FileEventType |
of(WatchEvent.Kind kind)
Returns a which is equivalent to the given
kind |
static FileEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileEventType CREATE
public static final FileEventType UPDATE
public static final FileEventType DELETE
public static FileEventType[] values()
for (FileEventType c : FileEventType.values()) System.out.println(c);
public static FileEventType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static FileEventType of(WatchEvent.Kind kind)
kindkind - a Java event WatchEvent.KindFileEventTypeIllegalArgumentException - if the kind does not have an equivalent FileEventTypepublic WatchEvent.Kind asEventKind()
WatchEvent.Kind with the same semantic meaning as this instanceCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.