public class FileDependency extends Dependency
| Modifier and Type | Field and Description |
|---|---|
private File |
file
The file we're tracking
|
private long |
lastModified
When the file was modified
|
| Constructor and Description |
|---|
FileDependency(File file)
Constructor - stores the modification date of the file.
|
FileDependency(String path)
Constructor - stores the modification date of the file.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Make a human-readable representation
|
boolean |
validate()
Checks if this dependency is still valid.
|
private File file
private long lastModified
public FileDependency(File file)
file - The file to base the dependency on.public FileDependency(String path)
path - Full path to the file on which to base the dependency.public boolean validate()
validate in class Dependencypublic String toString()
toString in class Object