private ColumnDefinition [ ] columnDefinitions ( ColumnDefinition [ ] columns , String [ ] order ) { Map < String , ColumnDefinition > map = makeColumnMap ( columns ) ; ColumnDefinition [ ] result = new ColumnDefinition [ order . length ] ; for ( int index = 0 ; index < order . length ; index ++ ) { result [ index ] = map . get ( order [ index ] ) ; } return result ; }
Generate an ordered set of column definitions from an ordered set of column names .