/******************************************************************************* * Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 * which accompanies this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html * and the Eclipse Distribution License is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * Contributors: * Blaise Doughan - 2.4 - initial implementation ******************************************************************************/ package org.eclipse.persistence.testing.jaxb.listofobjects; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.ListIterator; public class NullIteratorList<T> implements List<T> { public int size() { return 0; } public boolean isEmpty() { return true; } public boolean contains(Object o) { return false; } public Iterator iterator() { return null; } public Object[] toArray() { return null; } public Object[] toArray(Object[] a) { return null; } public boolean add(Object e) { return false; } public boolean remove(Object o) { return false; } public boolean containsAll(Collection c) { return false; } public boolean addAll(Collection c) { return false; } public boolean addAll(int index, Collection c) { return false; } public boolean removeAll(Collection c) { return false; } public boolean retainAll(Collection c) { return false; } public void clear() { } public T get(int index) { return null; } public Object set(int index, Object element) { return null; } public void add(int index, Object element) { } public T remove(int index) { return null; } public int indexOf(Object o) { return 0; } public int lastIndexOf(Object o) { return 0; } public ListIterator listIterator() { return null; } public ListIterator listIterator(int index) { return null; } public List subList(int fromIndex, int toIndex) { return null; } }