public enum FileWatchEvent extends Enum<FileWatchEvent>
Enum Constant and Description |
---|
ACCESS
文件被访问
|
CREATE
文件被创建
|
DELETE
文件被删除
|
MODIFIED
文件被修改
|
Modifier and Type | Field and Description |
---|---|
static FileWatchEvent[] |
ALL |
Modifier and Type | Method and Description |
---|---|
static FileWatchEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileWatchEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileWatchEvent ACCESS
public static final FileWatchEvent MODIFIED
public static final FileWatchEvent CREATE
public static final FileWatchEvent DELETE
public static FileWatchEvent[] ALL
public static FileWatchEvent[] values()
for (FileWatchEvent c : FileWatchEvent.values()) System.out.println(c);
public static FileWatchEvent 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 nullCopyright © 2024. All rights reserved.