public Map < T , Integer > getAllSorted ( ) { Map < T , Integer > map = styles ; TreeMap < T , Integer > smap = new TreeMap < T , Integer > ( new StyleCountComparator ( map ) ) ; smap . putAll ( map ) ; return smap ; }
Obtains all the registered styles and their frequencies sorted by frequency .