Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert list to map java

Map<String, Item> map = 
    list.stream().collect(Collectors.toMap(Item::getKey, item -> item));
 
PREVIOUS NEXT
Tagged: #convert #list #map #java
ADD COMMENT
Topic
Name
7+3 =