5Feb/090
Generic Coherence Filter
Warning: file_get_contents(http://feeds.delicious.com/v2/json/urlinfo/data?url=http%3A%2F%2Fstephennimmo.com%2Fblog%2F2009%2F02%2F05%2Fgeneric-coherence-filter%2F) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 999 Unable to process request at this time -- error 999 in /home1/stephenn/public_html/blog/wp-content/plugins/digg-digg/dd.class.php on line 866
public abstract class AbstractFilter<KEY extends Serializable, OBJECT>
implements Filter, Serializable {
public abstract boolean evaluate(KEY key, OBJECT object);
@SuppressWarnings("unchecked";)
public boolean evaluate(Object o) {
MapEvent event = (MapEvent)o;
KEY key = (KEY)event.getKey();
OBJECT object = (OBJECT) event.getNewValue();
return evaluate(key, object);
}
}