YoBitAdapters { public static String adaptCcyPairsToUrlFormat(Iterable<CurrencyPair> currencyPairs) { return StreamSupport.stream(currencyPairs.spliterator(), false) .map(YoBitAdapters::adaptCcyPairToUrlFormat) .collect(Collectors.joining("-")); }  static CurrencyPair adaptCurrencyPair(String pair); static Currency adaptCurrency(String ccy); static OrderBook adaptOrderBook(YoBitOrderBook book, CurrencyPair currencyPair); static ExchangeMetaData adaptToExchangeMetaData(
      ExchangeMetaData exchangeMetaData, YoBitInfo products); static Trades adaptTrades(List<YoBitTrade> ctrades, CurrencyPair currencyPair); static Ticker adaptTicker(YoBitTicker ticker, CurrencyPair currencyPair); static String adaptCcyPairsToUrlFormat(Iterable<CurrencyPair> currencyPairs); static String adaptCcyPairToUrlFormat(CurrencyPair currencyPair); static OrderType adaptType(String type); static Order.OrderStatus adaptOrderStatus(String status); static LimitOrder adaptOrder(String orderId, Map map); static UserTrade adaptUserTrade(Object key, Map tradeData);  }
@Test public void adaptCcyPairsToUrlFormat() { CurrencyPair pair0 = CurrencyPair.ADA_BNB; CurrencyPair pair1 = CurrencyPair.GNO_ETH; CurrencyPair pair2 = CurrencyPair.BTC_BRL; List<CurrencyPair> pairs = new ArrayList<>(3); pairs.add(pair0); pairs.add(pair1); pairs.add(pair2); Assert.assertEquals("ada_bnb-gno_eth-btc_brl", YoBitAdapters.adaptCcyPairsToUrlFormat(pairs)); }