|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDependency
FileDependency
public class FileDependency
This class represents a dependency on a given file. The dependency becomes stale if the file modification time changes after the dependency is created.
Field Summary | |
---|---|
private File |
file
The file we're tracking |
private long |
lastModified
When the file was modified |
Constructor Summary | |
---|---|
FileDependency(File file)
Constructor - stores the modification date of the file. |
|
FileDependency(String path)
Constructor - stores the modification date of the file. |
Method Summary | |
---|---|
String |
toString()
Make a human-readable representation |
boolean |
validate()
Checks if this dependency is still valid. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private File file
private long lastModified
Constructor Detail |
---|
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.Method Detail |
---|
public boolean validate()
validate
in class Dependency
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |