public List<StockInfo> findLimitUpStocksOn(String date) { List<StockInfo> list = new ArrayList<>(); for (Map.Entry<String, List<StockInfo>> entry : cache.entrySet()) { for (StockInfo stock : entry.getValue()) { if (stock.getTradeDate().equals(date) && stock.isLimitUp()) { list.add(stock); } } } return list; }