void (String[] args) { String language = "da"; List<Area> areas = new ArrayList<>(); Map<Integer, AreaVo> areaLookup = areas.stream() .collect(Collectors.toMap(Area::getId, area -> new AreaVo(area, language))); }