Package io.methvin.watcher
Class DirectoryChangeEvent
- java.lang.Object
-
- io.methvin.watcher.DirectoryChangeEvent
-
public final class DirectoryChangeEvent extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DirectoryChangeEvent.EventType
-
Constructor Summary
Constructors Constructor Description DirectoryChangeEvent(DirectoryChangeEvent.EventType eventType, boolean isDirectory, java.nio.file.Path path, FileHash hash, int count, java.nio.file.Path rootPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count()
boolean
equals(java.lang.Object o)
DirectoryChangeEvent.EventType
eventType()
FileHash
hash()
int
hashCode()
boolean
isDirectory()
java.nio.file.Path
path()
java.nio.file.Path
rootPath()
java.lang.String
toString()
-
-
-
Constructor Detail
-
DirectoryChangeEvent
public DirectoryChangeEvent(DirectoryChangeEvent.EventType eventType, boolean isDirectory, java.nio.file.Path path, FileHash hash, int count, java.nio.file.Path rootPath)
-
-
Method Detail
-
eventType
public DirectoryChangeEvent.EventType eventType()
-
path
public java.nio.file.Path path()
-
count
public int count()
-
rootPath
public java.nio.file.Path rootPath()
-
isDirectory
public boolean isDirectory()
-
hash
public FileHash hash()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-