Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

List of tuple to map + jpa

  
  public Set<Entry<String, Object>> entrySet() {
    return tuple.getElements().stream() //
        .map(e -> new HashMap.SimpleEntry<String, Object>(e.getAlias(), tuple.get(e))) //
        .collect(Collectors.toSet());
  }
}
Source by www.codota.com #
 
PREVIOUS NEXT
Tagged: #List #tuple #map #jpa
ADD COMMENT
Topic
Name
5+8 =