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