/**
 * JBoss, Home of Professional Open Source.
 * Copyright 2014-2019 Red Hat, Inc., and individual contributors
 * as indicated by the @author tags.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jboss.pnc.client;

/**
 * @author <a href="mailto:matejonnet@gmail.com">Matej Lazar</a>
 */
public interface RemoteCollection<T> extends Iterable<T> {
    int size();
}

@@ -733,16 +733,85 @@
 lient;%0A%0A
+import java.util.Iterator;%0Aimport java.util.NoSuchElementException;%0A%0A
 /**%0A * @
@@ -949,11 +949,641 @@
  size();
+%0A%0A    static%3CT%3E RemoteCollection%3CT%3E empty() %7B%0A        return new RemoteCollection%3CT%3E() %7B%0A            @Override%0A            public int size() %7B%0A                return 0;%0A            %7D%0A%0A            @Override%0A            public Iterator%3CT%3E iterator() %7B%0A                return new Iterator%3CT%3E() %7B%0A                    @Override%0A                    public boolean hasNext() %7B%0A                        return false;%0A                    %7D%0A%0A                    @Override%0A                    public T next() %7B%0A                        throw new NoSuchElementException();%0A                    %7D%0A                %7D;%0A            %7D%0A        %7D;%0A    %7D
 %0A%7D%0A

Add RemoteCollection.empty method.