/***********************************************************************************************************************
 *
 * Copyright (C) 2010 by the Stratosphere project (http://stratosphere.eu)
 *
 * 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 eu.stratosphere.pact.runtime.test.util;

import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

import eu.stratosphere.pact.common.type.PactRecord;

public class NirvanaOutputList implements List<PactRecord> {

	@Override
	public boolean add(PactRecord arg0) {
		return true;
	}

	@Override
	public void add(int arg0, PactRecord arg1) {
	}

	@Override
	public boolean addAll(Collection<? extends PactRecord> arg0) {
		return true;
	}

	@Override
	public boolean addAll(int arg0, Collection<? extends PactRecord> arg1) {
		return true;
	}

	@Override
	public void clear() {
	}

	@Override
	public boolean contains(Object arg0) {
		return false;
	}

	@Override
	public boolean containsAll(Collection<?> arg0) {
		return false;
	}

	@Override
	public PactRecord get(int arg0) {
		return null;
	}

	@Override
	public int indexOf(Object arg0) {
		return -1;
	}

	@Override
	public boolean isEmpty() {
		return true;
	}

	@Override
	public Iterator<PactRecord> iterator() {
		
		return new Iterator<PactRecord>() {

			@Override
			public boolean hasNext() {
				return false;
			}

			@Override
			public PactRecord next() {
				return null;
			}

			@Override
			public void remove() {
				throw new UnsupportedOperationException();
			}
			
		};
	}

	@Override
	public int lastIndexOf(Object arg0) {
		return -1;
	}

	@Override
	public ListIterator<PactRecord> listIterator() {
		return null;
	}

	@Override
	public ListIterator<PactRecord> listIterator(int arg0) {
		return null;
	}

	@Override
	public boolean remove(Object arg0) {
		return true;
	}

	@Override
	public PactRecord remove(int arg0) {
		return null;
	}

	@Override
	public boolean removeAll(Collection<?> arg0) {
		return true;
	}

	@Override
	public boolean retainAll(Collection<?> arg0) {
		return true;
	}

	@Override
	public PactRecord set(int arg0, PactRecord arg1) {
		return null;
	}

	@Override
	public int size() {
		return 0;
	}

	@Override
	public List<PactRecord> subList(int arg0, int arg1) {
		return new NirvanaOutputList();
	}

	@Override
	public Object[] toArray() {
		return new Object[0];
	}

	@Override
	public <T> T[] toArray(T[] arg0) {
		return null;
	}

	
}
