chapter_002/src/main/java/ru/job4j/listinmap/UserConvert.java
public HashMap<Integer, User> process(List<User> list) {
        HashMap rezult = new HashMap<Integer, User>();
        for (User user : list) {
            rezult.put(user.getId(), user);
        }
        return rezult;
    }
/**
     * Convert User list to HashMap.
     *
     * @param list List
     * @return HasMap
     */
Convert User list to HashMap.
@param list List
@return HasMap
Convert User list to HashMap . @param list List @return HasMap
public HashMap<Integer, User> process(List<User> list) {
        HashMap rezult = new HashMap<Integer, User>();
        for (User user : list) {
            rezult.put(user.getId(), user);
        }
        return rezult;
    }
public HashMap < Integer , User > process ( List < User > list ) { HashMap rezult = new HashMap < Integer , User > ( ) ; for ( User user : list ) { rezult . put ( user . getId ( ) , user ) ; } return rezult ; }
Convert User list to HashMap.
Convert User list to HashMap .