package com.github.kubernetes.java.client.model;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

public abstract class AbstractKubernetesModelList<T> extends AbstractKubernetesModel implements Iterable<T> {

    private List<T> items = new ArrayList<T>();

    protected AbstractKubernetesModelList(Kind kind) {
        super(kind);
    }

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }

    public Iterator<T> iterator() {
        return getItems().iterator();
    }

    @Override
    public String toString() {
        return getKind() + " [items=" + StringUtils.join(getItems(), ',') + "]";
    }
}

@@ -626,24 +626,231 @@
 r();%0A    %7D%0A%0A
+    public int size() %7B%0A        return getItems().size();%0A    %7D%0A%0A    public boolean isEmpty() %7B%0A        return getItems().isEmpty();%0A    %7D%0A%0A    public T get(int i) %7B%0A        return getItems().get(i);%0A    %7D%0A%0A
     @Overrid

Add Collection methods to AbstractKubernetesModelList objects