@@ -0,0 +1,1763 @@
+/*%0A * Copyright (C) 2014 Pedro Vicente G%C3%B3mez S%C3%A1nchez.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.pedrogomez.renderers;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collection;%0Aimport java.util.List;%0A%0A/**%0A * Generic AdapteeCollection implementation based on ArrayList%3CT%3E. Library clients can use this%0A * class instead of create his own AdapteeCollections.%0A *%0A * @author Pedro Vicente G%C3%B3mez S%C3%A1nchez.%0A */%0Apublic class ListAdapteeCollection%3CT%3E implements AdapteeCollection%3CT%3E %7B%0A%0A  private final List%3CT%3E list;%0A%0A  public ListAdapteeCollection() %7B%0A    this(new ArrayList%3CT%3E());%0A  %7D%0A%0A  public ListAdapteeCollection(List%3CT%3E list) %7B%0A    this.list = new ArrayList%3CT%3E();%0A    this.list.addAll(list);%0A  %7D%0A%0A  @Override public int size() %7B%0A    return list.size();%0A  %7D%0A%0A  @Override public T get(int index) %7B%0A    return list.get(index);%0A  %7D%0A%0A  @Override public void add(T element) %7B%0A    this.list.add(element);%0A  %7D%0A%0A  @Override public void remove(T element) %7B%0A    this.list.remove(element);%0A  %7D%0A%0A  @Override public void addAll(Collection%3CT%3E elements) %7B%0A    this.list.addAll(elements);%0A  %7D%0A%0A  @Override public void removeAll(Collection%3CT%3E elements) %7B%0A    this.list.removeAll(elements);%0A  %7D%0A%0A  @Override public void clear() %7B%0A    this.list.clear();%0A  %7D%0A%7D%0A

Add ListAdapteeCollection implementation