protected SortedMap < String , String > getParametersToDisplay ( List < ParameterSetOperation > params ) { // populate param map with sorted by key: key=index/name, value=first value SortedMap < String , String > paramMap = new TreeMap < String , String > ( new StringAsIntegerComparator ( ) ) ; for ( ParameterSetOperation param : params ) { String key = getParameterKeyToDisplay ( param ) ; String value = getParameterValueToDisplay ( param ) ; paramMap . put ( key , value ) ; } return paramMap ; }
populate param map with sorted by key .