Class AutoIdUtil


  • public class AutoIdUtil
    extends Object
    随机id
    Author:
    libo 2020年10月14日
    • Constructor Detail

      • AutoIdUtil

        public AutoIdUtil()
    • Method Detail

      • getRandomId

        public static String getRandomId​(int length)
        返回一个随机id
        Parameters:
        length - 生成的长度 11+length
        Returns:
      • getRandomLongId

        public static Long getRandomLongId​(int length)
      • getRandomLongId

        public static Long getRandomLongId()
      • getRandomLongId20

        public static Long getRandomLongId20()
      • getRandomLongId36

        public static Long getRandomLongId36()
      • getRandomLongId26

        public static Long getRandomLongId26()
      • getRandomId26

        public static String getRandomId26()
      • getRandomId30

        public static String getRandomId30()
      • getRandomId36

        public static String getRandomId36()