Class Radix62IdConverter

java.lang.Object
me.ahoo.cosid.converter.RadixIdConverter
me.ahoo.cosid.converter.Radix62IdConverter
All Implemented Interfaces:
IdConverter, Statistical

public final class Radix62IdConverter extends RadixIdConverter
62 bit string ID converter like this [0-9][A-Z][a-z]{11} . If you use the string ID generated by this ID converter as the database primary key, you must set the primary key case-sensitive.
  • Field Details

  • Constructor Details

    • Radix62IdConverter

      public Radix62IdConverter(boolean padStart, int charSize)
  • Method Details

    • of

      public static Radix62IdConverter of(boolean padStart, int charSize)
      Return an instance representing the specified parameter. If new instances are not required, static cached instances are used to provide space and time efficiency.
      Parameters:
      padStart - padStart
      charSize - Size
      Returns:
      Radix62IdConverter