package com.accenture.multibank.dao;

import java.util.HashMap;
import java.util.Map;

import com.accenture.multibank.accounts.AccountReadable;

public class AccountDaoImpl implements AbstractDAO<Integer, AccountReadable> {

	private Map<Integer, AccountReadable> map = new HashMap<>();

	@Override
	public void save(AccountReadable account) {
		map.put(account.getAccountNumber(), account);
	}

	@Override
	public void find(Integer accountNumber) {
		map.get(accountNumber);
	}

	@Override
	public void update(AccountReadable account) {
		map.put(account.getAccountNumber(), account);
	}

	@Override
	public void delete(Integer accountNumber) {
		map.remove(accountNumber);
	}
}

@@ -425,20 +425,31 @@
 %09public 
-void
+AccountReadable
  find(In
@@ -640,20 +640,31 @@
 %09public 
-void
+AccountReadable
  delete(
@@ -687,24 +687,31 @@
 umber) %7B%0D%0A%09%09
+return 
 map.remove(a

change return types