public interface Filter<T>
public void process(List objects) {
for (Iterator iter = objects.iterator; iter.hasNext();; ) {
Record object = (Record)iter.next();
if (filter.accept(object) {
// perform action
}
}
}
boolean accept(T object)
object - The object to check.Copyright © 2015 Revolution Systems Inc.. All rights reserved.