package tzatziki.analysis.step;
import com.google.common.collect.FluentIterable;
import com.google.common.collect.Lists;
import java.util.List;
/**
* @author <a href="http://twitter.com/aloyer">@aloyer</a>
*/
public class Features {
private final List<Feature> featureList = Lists.newArrayList();
public Features() {
}
public void add(Feature feature) {
featureList.add(feature);
}
public void traverse(FeatureVisitor visitor) {
for (Feature feature : featureList) {
feature.traverse(visitor);
}
}
public FluentIterable<Feature> features() {
return FluentIterable.from(featureList);
}
@Override
public String toString() {
return "Features{" + featureList + '}';
}
}