public enum Watcher extends Enum<Watcher>
| Modifier and Type | Class and Description |
|---|---|
static interface |
Watcher.CheckedRunnable |
static interface |
Watcher.FileEventListener |
| Modifier and Type | Method and Description |
|---|---|
static Thread |
infiniteThread(Watcher.CheckedRunnable runnable) |
static Watcher |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Watcher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static void |
watchDirectory(File directory,
Watcher.CheckedRunnable runnable) |
public static Watcher[] values()
for (Watcher c : Watcher.values()) System.out.println(c);
public static Watcher 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 Thread infiniteThread(Watcher.CheckedRunnable runnable)
public static void watchDirectory(File directory, Watcher.CheckedRunnable runnable) throws IOException
IOExceptionCopyright © 2019. All rights reserved.