您可以使用
flatMap来获取
Maps中所有
Methods的所有
Resource:
List<Map> mapList = getResources().stream() .flatMap(r->r.getMethods().stream().map(m->getMap(r,m))) .collect(Collectors.toList());

您可以使用
flatMap来获取
Maps中所有
Methods的所有
Resource:
List<Map> mapList = getResources().stream() .flatMap(r->r.getMethods().stream().map(m->getMap(r,m))) .collect(Collectors.toList());