Codota Logo
PinyinComparator
Code IndexAdd Codota to your IDE (free)

How to use
PinyinComparator
in
cn.hutool.core.comparator

Best Java code snippets using cn.hutool.core.comparator.PinyinComparator (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: looly/hutool

/**
 * 根据汉字的拼音顺序排序
 * 
 * @param collection 集合,会被转换为List
 * @return 排序后的List
 * @since 4.0.8
 */
public static <T> List<String> sortByPinyin(Collection<String> collection) {
  return sort(collection, new PinyinComparator());
}
origin: looly/hutool

/**
 * 根据汉字的拼音顺序排序
 * 
 * @param collection 集合,会被转换为List
 * @return 排序后的List
 * @since 4.0.8
 */
public static <T> List<String> sortByPinyin(Collection<String> collection) {
  return sort(collection, new PinyinComparator());
}
origin: looly/hutool

/**
 * 根据汉字的拼音顺序排序
 * 
 * @param list List
 * @return 排序后的List
 * @since 4.0.8
 */
public static <T> List<String> sortByPinyin(List<String> list) {
  return sort(list, new PinyinComparator());
}
origin: looly/hutool

/**
 * 根据汉字的拼音顺序排序
 * 
 * @param list List
 * @return 排序后的List
 * @since 4.0.8
 */
public static <T> List<String> sortByPinyin(List<String> list) {
  return sort(list, new PinyinComparator());
}
origin: cn.hutool/hutool-all

/**
 * 根据汉字的拼音顺序排序
 * 
 * @param collection 集合,会被转换为List
 * @return 排序后的List
 * @since 4.0.8
 */
public static <T> List<String> sortByPinyin(Collection<String> collection) {
  return sort(collection, new PinyinComparator());
}
origin: cn.hutool/hutool-all

/**
 * 根据汉字的拼音顺序排序
 * 
 * @param list List
 * @return 排序后的List
 * @since 4.0.8
 */
public static <T> List<String> sortByPinyin(List<String> list) {
  return sort(list, new PinyinComparator());
}
cn.hutool.core.comparatorPinyinComparator

Javadoc

按照GBK拼音顺序对给定的汉字字符串排序

Most used methods

  • <init>
    构造

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now