list of tuple to map 2b jpa

Solutions on MaxInterview for list of tuple to map 2b jpa by the best coders in the world

showing results for - "list of tuple to map 2b jpa"
Wesley
11 Sep 2017
1  
2  public Set<Entry<String, Object>> entrySet() {
3    return tuple.getElements().stream() //
4        .map(e -> new HashMap.SimpleEntry<String, Object>(e.getAlias(), tuple.get(e))) //
5        .collect(Collectors.toSet());
6  }
7}
8