| Modifier and Type | Class | Description |
|---|---|---|
static interface |
Watcher.CheckedRunnable |
|
static interface |
Watcher.FileEventListener |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.Thread |
infiniteThread(Watcher.CheckedRunnable runnable) |
|
static Watcher |
valueOf(java.lang.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(java.io.File directory,
Watcher.CheckedRunnable runnable) |
public static Watcher[] values()
for (Watcher c : Watcher.values()) System.out.println(c);
public static Watcher 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 java.lang.Thread infiniteThread(Watcher.CheckedRunnable runnable)
public static void watchDirectory(java.io.File directory,
Watcher.CheckedRunnable runnable)
throws java.io.IOException
java.io.IOExceptionCopyright © 2018. All rights reserved.