Class StringUtils

  • All Implemented Interfaces:

    
    public class StringUtils
    
                        

    Created by weiqinxiao on 15/12/28.

    • 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) 获取字符的拼音首字母,如果是汉字则返回拼音首字母,大写形式;否则直接返回字符本身的大写形式。
      • 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)

        获取字符的拼音首字母,如果是汉字则返回拼音首字母,大写形式;否则直接返回字符本身的大写形式。

        Parameters:
        c - 字符
        Returns:

        拼音首字母或字符本身的大写形式