/** 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 Bank getBank(Market market) { return bankByMarketMap.get(market.getOrganizationId()); }
public BankMap(List<Bank> allBanksForClient) { for (Bank bank : allBanksForClient) { bankByMarketMap.put(bank.getMarketId().getOrganizationId(), bank); } }