public class ClassDependency extends java.lang.Object implements PersistentDependency
Constructor and Description |
---|
ClassDependency(java.lang.Class<?> cl)
Creates the class dependency.
|
ClassDependency(java.lang.String className,
long digest)
Create a new dependency with a given digest.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
long |
getDigest()
Calculates a MD5 digest of the class.
|
java.lang.String |
getJavaCreateString()
Returns a string which will recreate the dependency.
|
int |
hashCode() |
boolean |
isModified()
Returns true if the underlying resource has changed.
|
boolean |
logModified(java.util.logging.Logger log)
Returns true if the underlying resource has changed.
|
java.lang.String |
toString() |
public ClassDependency(java.lang.Class<?> cl)
public ClassDependency(java.lang.String className, long digest)
cl
- the source classdigest
- the MD5 digestpublic boolean isModified()
isModified
in interface Dependency
public boolean logModified(java.util.logging.Logger log)
logModified
in interface Dependency
public long getDigest()
public java.lang.String getJavaCreateString()
getJavaCreateString
in interface PersistentDependency
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object