public enum WatchEventKind extends Enum<WatchEventKind>
Enum Constant and Description |
---|
CREATE
创建事件
|
DELETE
删除事件
|
MODIFY
修改事件
|
OVERFLOW
事件丢失
|
Modifier and Type | Field and Description |
---|---|
static WatchEvent.Kind<?>[] |
ALL
全部事件
|
Modifier and Type | Method and Description |
---|---|
WatchEvent.Kind<?> |
getValue() |
static WatchEventKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WatchEventKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WatchEventKind OVERFLOW
public static final WatchEventKind MODIFY
public static final WatchEventKind CREATE
public static final WatchEventKind DELETE
public static final WatchEvent.Kind<?>[] ALL
public static WatchEventKind[] values()
for (WatchEventKind c : WatchEventKind.values()) System.out.println(c);
public static WatchEventKind 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 WatchEvent.Kind<?> getValue()
Copyright © 2024. All rights reserved.