io.fabric8.common.BaseFluent Maven / Gradle / Ivy
package io.fabric8.common;
import java.util.List;
import java.util.ArrayList;
import java.util.LinkedHashSet;
public class BaseFluent implements Fluent, Visitable{
public final List _visitables = new ArrayList();
public ArrayList build( List extends Builder> list){
ArrayList r = new ArrayList<>();for (Builder b : list) { r.add(b.build());}return r;
}
public LinkedHashSet build( LinkedHashSet extends Builder> set){
LinkedHashSet r = new LinkedHashSet<>();for (Builder b : set) { r.add(b.build());}return r;
}
public T accept( Visitor visitor){
for (Visitable v : _visitables) { v.accept(visitor);}visitor.visit(this);return (T) this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy