public enum WatchEventType extends java.lang.Enum<WatchEventType>
WatchEvent since
the default OS X uses polling which is slow.| Enum Constant and Description |
|---|
CREATE
A file / directory was created.
|
DELETE
A file / directory was deleted.
|
MODIFY
A file / directory was modified.
|
| Modifier and Type | Method and Description |
|---|---|
static WatchEventType |
of(java.nio.file.WatchEvent.Kind kind)
Produces a
WatchEventType for the given WatchEvent.kind(). |
static WatchEventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WatchEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WatchEventType CREATE
public static final WatchEventType MODIFY
public static final WatchEventType DELETE
public static WatchEventType[] values()
for (WatchEventType c : WatchEventType.values()) System.out.println(c);
public static WatchEventType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static WatchEventType of(java.nio.file.WatchEvent.Kind kind)
WatchEventType for the given WatchEvent.kind().kind - The kind