类 CodeStringUtils

java.lang.Object
cloud.opencode.base.util.CodeStringUtils

public final class CodeStringUtils extends Object
版本:
v1.0.0
作者:
Jon So, e-mail: ijonso123@gmail.com url: Jon's blog url: project github
  • 字段详细资料

    • TEL_LENGTH

      private static final int TEL_LENGTH
      另请参阅:
    • ID_LENGTH_18

      private static final int ID_LENGTH_18
      另请参阅:
    • ID_LENGTH_15

      private static final int ID_LENGTH_15
      另请参阅:
  • 构造器详细资料

    • CodeStringUtils

      private CodeStringUtils()
  • 方法详细资料

    • getProtectionTel

      public static String getProtectionTel(String tel)
      china mobile number protection example: 13912345678 to 139****5678
      参数:
      tel - length
      返回:
      the format string
    • getProtectionIdNo

      public static String getProtectionIdNo(String IdNo)
      china id protection example: 350101202105201234 to 3501**2021****1234
      参数:
      IdNo - length 18 or 15
      返回:
      the format string
    • getNonceStr

      public static String getNonceStr()
      Get a random string
      返回:
      String
    • getUuidNoHyphen

      public static String getUuidNoHyphen(int len)
      getUUID no hyphen(-)
      返回:
      string
    • getRandomNo

      public static String getRandomNo()
      get random string
      返回:
      String