|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.isdc.wro.model.resource.support.change.ResourceChangeInfo
public final class ResourceChangeInfo
Holds details about hashes of watched resources and the group which were detected as changed.
Constructor Summary | |
---|---|
ResourceChangeInfo()
|
Method Summary | |
---|---|
boolean |
isChanged(String groupName)
|
boolean |
isCheckRequiredForGroup(String groupName)
Checks if the current hash was set previously and persist the groupName in the set of the groups who are interested about the change. |
void |
reset()
Resets the state of this ResourceChangeInfo by copying the current hash to previous hash and reseting
current hash to null. |
String |
toString()
|
void |
updateHashForGroup(String hash,
String groupName)
Updates the hash associated with the resource for a give groupName. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceChangeInfo()
Method Detail |
---|
public void updateHashForGroup(String hash, String groupName)
hash
- the most recent computed hash.groupName
- name of the group for which the change of resource is detected.public void reset()
ResourceChangeInfo
by copying the current hash to previous hash and reseting
current hash to null. This operation should be invoked after a change cycle completes and a new one is prepared.
public boolean isChanged(String groupName)
groupName
- associated with the current change check.
public boolean isCheckRequiredForGroup(String groupName)
groupName
- the name of the group which contains the resource for which check is performed.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |