|
|
|
@ -27,4 +27,15 @@ public class ForexMarketDateUtil {
|
|
|
|
|
ForexMarketData forexData = map.get(tradingCode);
|
|
|
|
|
return forexData;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Map<String,ForexMarketData> getForexMarketDateMap( List<ForexMarketData> forexDateList){
|
|
|
|
|
Map<String,ForexMarketData> map=new HashMap<>();
|
|
|
|
|
if (forexDateList.size() > 0) {
|
|
|
|
|
for (int i = 0; i < forexDateList.size(); i++) {
|
|
|
|
|
String getCode = forexDateList.get(i).getCode();
|
|
|
|
|
map.put(getCode,forexDateList.get(i));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|