com.bazoud.elasticsearch.river.git.guava.Visitors Maven / Gradle / Ivy
package com.bazoud.elasticsearch.river.git.guava;
/**
* @author Olivier Bazoud
*/
public final class Visitors {
private Visitors() {
}
public static void visit(Iterable iterable, Visitor visitor) throws Exception {
visitor.before();
for (T current : iterable) {
visitor.visit(current);
}
visitor.after();
}
}