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