this.timeStamps.add(new Long(timeStamp));
}
public boolean isValid(CacheValidity validity) {
if (validity instanceof IncludeCacheValidity) {
SourceResolver otherResolver = ((IncludeCacheValidity) validity).resolver;
for(Iterator i = sources.iterator(), j = timeStamps.iterator(); i.hasNext();) {
String src = ((String)i.next());
long timeStamp = ((Long)j.next()).longValue();
Source otherSource = null;
try {
otherSource = otherResolver.resolveURI(src);
if(otherSource.getLastModified() != timeStamp ||
timeStamp == 0)
return false;
} catch (Exception e) {
return false;
} finally {
otherResolver.release(otherSource);
}
}
return true;
}
return false;