public class RepositoryDependency extends java.lang.Object implements PersistentDependency
Constructor and Description |
---|
RepositoryDependency(java.lang.String tag,
java.lang.String sha1)
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 tag as
this dependency.
|
java.lang.String |
getJavaCreateString()
Returns a string to recreate the dependency.
|
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 modification
|
java.lang.String |
toString()
Returns a printable version of the dependency.
|
public RepositoryDependency(java.lang.String tag, java.lang.String sha1)
source
- the source filepublic boolean isModified()
isModified
in interface Dependency
public boolean logModified(java.util.logging.Logger log)
logModified
in interface Dependency
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getJavaCreateString()
PersistentDependency
getJavaCreateString
in interface PersistentDependency
public java.lang.String toString()
toString
in class java.lang.Object