Package org.hotswap.agent.watch.nio
Class HotswapWatchFileEvent
- java.lang.Object
-
- org.hotswap.agent.watch.nio.HotswapWatchFileEvent
-
- All Implemented Interfaces:
WatchFileEvent
public class HotswapWatchFileEvent extends Object implements WatchFileEvent
Filesystem event.
-
-
Constructor Summary
Constructors Constructor Description HotswapWatchFileEvent(WatchEvent<?> event, Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)FileEventgetEventType()URIgetURI()URI to file or directory with the eventinthashCode()booleanisDirectory()URI is a directory.booleanisFile()URI is a file.StringtoString()
-
-
-
Constructor Detail
-
HotswapWatchFileEvent
public HotswapWatchFileEvent(WatchEvent<?> event, Path path)
-
-
Method Detail
-
getEventType
public FileEvent getEventType()
- Specified by:
getEventTypein interfaceWatchFileEvent- Returns:
- type of the event
-
getURI
public URI getURI()
Description copied from interface:WatchFileEventURI to file or directory with the event- Specified by:
getURIin interfaceWatchFileEvent- Returns:
- URI
-
isFile
public boolean isFile()
Description copied from interface:WatchFileEventURI is a file.- Specified by:
isFilein interfaceWatchFileEvent
-
isDirectory
public boolean isDirectory()
Description copied from interface:WatchFileEventURI is a directory.- Specified by:
isDirectoryin interfaceWatchFileEvent
-
-