question: private static void createFlattenedListFromMap ( List < Distributable > blockInfos , List < NodeBlockRelation > flattenedList , Set < Distributable > uniqueBlocks , Set < String > nodeList ) { for ( Distributable blockInfo : blockInfos ) { uniqueBlocks . add ( blockInfo ) ; for ( String eachNode : blockInfo . getLocations ( ) ) { NodeBlockRelation nbr = new NodeBlockRelation ( blockInfo , eachNode ) ; flattenedList . add ( nbr ) ; nodeList . add ( eachNode ) ; } } }
target:  Create the flat List i.e flattening of the Map.