Java Map Sort sortedTable(Map map)

Here you can find the source of sortedTable(Map map)

Description

sorted Table

License

Open Source License

Declaration

public static Map<String, Object> sortedTable(Map<String, Object> map) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static Map<String, Object> sortedTable(Map<String, Object> map) {
        if (map != null) {
            return new TreeMap<String, Object>(map);
        } else {//from w w w  . j av  a2  s  .  co m
            return new TreeMap<String, Object>();
        }
    }
}

Related

  1. sortedByRankThenLength(Map map)
  2. sortedKeys(Map map)
  3. sortedMap(Map map, Comparator comparator)
  4. sortedString(Map c)
  5. sortedString(Map c)
  6. sortedView(Map original, int numItems)
  7. sortEntries(Map map, Comparator> comparator)
  8. sortHashMapByValuesD(HashMap passedMap)
  9. sortingHelperSessions(String column, Map sortParams)