pub.codex.apix.build.ApiListingBuilder Maven / Gradle / Ivy
package pub.codex.apix.build;
import pub.codex.apix.schema.ApiDescription;
import pub.codex.apix.schema.ApiListing;
import java.util.List;
import static com.google.common.collect.Lists.newArrayList;
public class ApiListingBuilder {
private List apis = newArrayList();
public static ApiListingBuilder getBuild() {
return new ApiListingBuilder();
}
public ApiListingBuilder apis(List apis) {
if (apis != null) {
this.apis = apis;
}
return this;
}
public ApiListing build() {
return new ApiListing(apis);
}
}