How can I convert List<Employee> to Map<Integer,List<Employee>>.
Group List<Employee> based on depId present in employee Object, Map key is depId.
Is there any method in java.util.* or in Google Guava to convert it with out iterating through list.
 
     
     
    