Class StringUtils

  • All Implemented Interfaces:

    
    public class StringUtils
    
                        

    String utility class.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      StringUtils()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static String getKey(String arg1, String arg2)
      static String getArg1(String key)
      static String getArg2(String key)
      static String getStringNoBlank(String str)
      static char getFirstChar(char c) Gets the Pinyin initial of a character.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringUtils

        StringUtils()
    • Method Detail

      • getKey

         static String getKey(String arg1, String arg2)
      • getArg1

         static String getArg1(String key)
      • getArg2

         static String getArg2(String key)
      • getFirstChar

         static char getFirstChar(char c)

        Gets the Pinyin initial of a character. Returns the uppercase Pinyin initial for Chinese characters, or the uppercase form of the character itself otherwise.

        Parameters:
        c - the character
        Returns:

        the uppercase Pinyin initial or the uppercase character