| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.nio.file.WatchEvent<T>
T - The type of the context object associated with the eventpublic abstract class WatchEvent<T>
Disabled: no SafeJ information.
An event or a repeated event for an object that is registered with a WatchService.
 
 An event is classified by its kind and has a count to indicate the number of times that the event has been
 observed. This allows for efficient representation of repeated events. The
 context method returns any context associated with
 the event. In the case of a repeated event then the context is the same for
 all events.
 
Watch events are immutable and safe for use by multiple concurrent threads.
| Nested Class Summary | |
|---|---|
| static interface | WatchEvent.Kind<T>An event kind, for the purposes of identification. | 
| static interface | WatchEvent.ModifierAn event modifier that qualifies how a Watchableis registered
 with aWatchService. | 
| Constructor Summary | |
|---|---|
| protected  | WatchEvent()Initializes a new instance of this class. | 
| Method Summary | |
|---|---|
| abstract  T | context()Returns the context for the event. | 
| abstract  int | count()Returns the event count. | 
| abstract  WatchEvent.Kind<T> | kind()Returns the event kind. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected WatchEvent()
| Method Detail | 
|---|
public abstract WatchEvent.Kind<T> kind()
public abstract int count()
1
 then this is a repeated event.
public abstract T context()
 In the case of ENTRY_CREATE,
 ENTRY_DELETE, and ENTRY_MODIFY events the context is
 a Path that is the relative path between
 the directory registered with the watch service, and the entry that is
 created, deleted, or modified.
null| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||