public Map < Integer , List < Row > > createTimeEntryMap ( List < Row > rows ) { Map < Integer , List < Row > > map = new HashMap < Integer , List < Row > > ( ) ; for ( Row row : rows ) { Integer workPatternID = row . getInteger ( "TIME_ENTRYID" ) ; List < Row > list = map . get ( workPatternID ) ; if ( list == null ) { list = new LinkedList < Row > ( ) ; map . put ( workPatternID , list ) ; } list . add ( row ) ; } return map ; }
Creates a map between a work pattern ID and a list of time entry rows .