package org.ethereum.trie;

import java.io.IOException;

import org.iq80.leveldb.DB;
import org.iq80.leveldb.DBException;
import org.iq80.leveldb.DBIterator;
import org.iq80.leveldb.Range;
import org.iq80.leveldb.ReadOptions;
import org.iq80.leveldb.Snapshot;
import org.iq80.leveldb.WriteBatch;
import org.iq80.leveldb.WriteOptions;

public class MockDB implements DB {

	private int addedItems;
	
	@Override
	public void close() throws IOException {
		// TODO Auto-generated method stub
	}

	@Override
	public void compactRange(byte[] arg0, byte[] arg1) throws DBException {
		// TODO Auto-generated method stub	
	}

	@Override
	public WriteBatch createWriteBatch() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void delete(byte[] arg0) throws DBException {
		// TODO Auto-generated method stub
	}

	@Override
	public Snapshot delete(byte[] arg0, WriteOptions arg1)
			throws DBException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public byte[] get(byte[] arg0) throws DBException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public byte[] get(byte[] arg0, ReadOptions arg1) throws DBException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long[] getApproximateSizes(Range... arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getProperty(String arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Snapshot getSnapshot() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public DBIterator iterator() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public DBIterator iterator(ReadOptions arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void put(byte[] arg0, byte[] arg1) throws DBException {
		// TODO Auto-generated method stub
		addedItems++;
	}

	@Override
	public Snapshot put(byte[] arg0, byte[] arg1, WriteOptions arg2)
			throws DBException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void resumeCompactions() {
		// TODO Auto-generated method stub		
	}

	@Override
	public void suspendCompactions() throws InterruptedException {
		// TODO Auto-generated method stub		
	}

	@Override
	public void write(WriteBatch arg0) throws DBException {
		// TODO Auto-generated method stub		
	}

	@Override
	public Snapshot write(WriteBatch arg0, WriteOptions arg1)
			throws DBException {
		// TODO Auto-generated method stub
		return null;
	}
	
	/**
	 * Returns the number of items added to this Mock DB
	 * 
	 * @return int
	 */
	public int getAddedItems() {
		return addedItems;
	}

//	@Override
//	public void forEach(Consumer<? super Entry<byte[], byte[]>> action) {
//		TODO Auto-generated method stub
//
//	}

//	@Override
//	public Spliterator<Entry<byte[], byte[]>> spliterator() {
//		TODO Auto-generated method stub
//		return null;
//	}
	
}
@@ -2672,272 +2672,7 @@
 ;%0A%09%7D
-%0A%0A//%09@Override%0A//%09public void forEach(Consumer%3C? super Entry%3Cbyte%5B%5D, byte%5B%5D%3E%3E action) %7B%0A//%09%09TODO Auto-generated method stub%0A//%0A//%09%7D%0A%0A//%09@Override%0A//%09public Spliterator%3CEntry%3Cbyte%5B%5D, byte%5B%5D%3E%3E spliterator() %7B%0A//%09%09TODO Auto-generated method stub%0A//%09%09return null;%0A//%09%7D%0A
 %09%0A%7D

Remove commented code