public class PathExistsDependency extends java.lang.Object implements Dependency
| Constructor and Description |
|---|
PathExistsDependency(Path source)
Create a new dependency.
|
PathExistsDependency(Path source,
boolean exists)
Create a new dependency with an already known modified time and length.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the test Dependency has the same source path as
this dependency.
|
Path |
getPath()
Returns the underlying source path.
|
boolean |
isModified()
If the source modified date changes at all, treat it as a modification.
|
boolean |
logModified(java.util.logging.Logger log)
Log the reason for the modification.
|
java.lang.String |
toString()
Returns a printable version of the dependency.
|
public PathExistsDependency(Path source)
source - the source filepublic PathExistsDependency(Path source, boolean exists)
source - the source filepublic Path getPath()
public boolean isModified()
isModified in interface Dependencypublic boolean logModified(java.util.logging.Logger log)
logModified in interface Dependencypublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object