Iterator嵌套循环遍历迭代
private void filterMengGameById(List<Game> games,List<Long> gameIds){
if (CollectionUtils.isEmpty(gameIds) || CollectionUtils.isEmpty(games)){
return;
}
//获取迭代器
Iterator<Game> gameIterator = games.iterator();