/** Returns all bank markets */ public List<Market> getBankMarkets() { List<Market> markets = new ArrayList<Market>(); for (Bank bank : bankByMarketMap.values()) { markets.add(bank.getMarketId()); } return markets; }
public BankMap(List<Bank> allBanksForClient) { for (Bank bank : allBanksForClient) { bankByMarketMap.put(bank.getMarketId().getOrganizationId(), bank); } }