Package name.pachler.nio.file.impl
Class VoidWatchEvent
- java.lang.Object
-
- name.pachler.nio.file.WatchEvent<java.lang.Void>
-
- name.pachler.nio.file.impl.VoidWatchEvent
-
public class VoidWatchEvent extends WatchEvent<java.lang.Void>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class name.pachler.nio.file.WatchEvent
WatchEvent.Kind<T>, WatchEvent.Modifier<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Voidcontext()intcount()The number of times this event occurred, if it is cumulative.WatchEvent.Kind<java.lang.Void>kind()
-
-
-
Method Detail
-
context
public java.lang.Void context()
- Specified by:
contextin classWatchEvent<java.lang.Void>- Returns:
- the context of this event, which is usually a reference to the
object that has changed. In the case of WatchEvents for Path, the
context will be a
Pathto the file that this event refers to, relative to the watchedPath
-
count
public int count()
Description copied from class:WatchEventThe number of times this event occurred, if it is cumulative. It is not specified how events cumulate, so use this value for informational purposes only.- Specified by:
countin classWatchEvent<java.lang.Void>- Returns:
- the number of times this event has occurred, in case events of this kind have been aggregated into one WatchEvent instance.
-
kind
public WatchEvent.Kind<java.lang.Void> kind()
- Specified by:
kindin classWatchEvent<java.lang.Void>- Returns:
- the kind of event that occurred. This will indicate what actually happened, for instance, StandardWatchEventKind#ENTRY_CREATE indicates that a file has been created.
-
-