gutenberg.util.Collector Maven / Gradle / Ivy
package gutenberg.util;
import com.google.common.collect.Lists;
import java.util.List;
/**
* @author @aloyer
*/
public class Collector implements Consumer {
private final List collected = Lists.newArrayList();
public List getCollected() {
return collected;
}
@Override
public void consume(T value) {
collected.add(value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy