public class PathWatchEvent extends WatchEvent<Path>
WatchEvent.Kind<T>, WatchEvent.Modifier<T>
Constructor and Description |
---|
PathWatchEvent(WatchEvent.Kind<Path> kind,
Path path,
int count) |
Modifier and Type | Method and Description |
---|---|
Path |
context() |
int |
count()
The number of times this event occurred, if it is cumulative.
|
WatchEvent.Kind<Path> |
kind() |
java.lang.String |
toString() |
public PathWatchEvent(WatchEvent.Kind<Path> kind, Path path, int count)
public Path context()
context
in class WatchEvent<Path>
Path
to the file that this event
refers to, relative to the watched Path
public int count()
WatchEvent
count
in class WatchEvent<Path>
public WatchEvent.Kind<Path> kind()
kind
in class WatchEvent<Path>
public java.lang.String toString()
toString
in class java.lang.Object