public enum WatchEventType extends 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(WatchEvent.Kind kind)
Produces a
WatchEventType for the given WatchEvent.kind() . |
static WatchEventType |
valueOf(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(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 WatchEventType of(WatchEvent.Kind kind)
WatchEventType
for the given WatchEvent.kind()
.kind
- The kind