All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fabric8.common.BaseFluent Maven / Gradle / Ivy

There is a newer version: 0.0.54
Show newest version
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> list){
    ArrayList r = new ArrayList<>();for (Builder b : list) {    r.add(b.build());}return r;
}
    public  LinkedHashSet build( LinkedHashSet> 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