Java List Sort getSortedKetList(HashMap numKnownGenesHashMap)

Here you can find the source of getSortedKetList(HashMap numKnownGenesHashMap)

Description

get Sorted Ket List

License

Apache License

Declaration

public static List<String> getSortedKetList(HashMap<String, Integer> numKnownGenesHashMap) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

public class Main {
    public static List<String> getSortedKetList(HashMap<String, Integer> numKnownGenesHashMap) {
        List<String> ret = new ArrayList<String>();
        final Set<String> keySet = numKnownGenesHashMap.keySet();
        for (String key : keySet) {
            ret.add(key);//from w w w.j a va  2s  .c o  m
        }
        Collections.sort(ret);

        return ret;
    }
}

Related

  1. formatAsSortUniqCSVString(List s)
  2. getIndexForSortedInsert(final List listSorted, final String item)
  3. getNumberListSorted(String pagesStr)
  4. getOverlapCount(List list1, List list2, boolean sorted)
  5. getSortedFilesList(String filesList)
  6. getSortedList(Collection collection)
  7. getSortedList(Set items)
  8. getSortedStringList(List pathList)
  9. getZipfPlotData(List sortedCount)