Package me.ahoo.cosid.converter
Class Radix62IdConverter
java.lang.Object
me.ahoo.cosid.converter.RadixIdConverter
me.ahoo.cosid.converter.Radix62IdConverter
- All Implemented Interfaces:
IdConverter
,Statistical
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 Summary
Modifier and TypeFieldDescriptionstatic final Radix62IdConverter
static final int
static final Radix62IdConverter
static final int
Fields inherited from class me.ahoo.cosid.converter.RadixIdConverter
PAD_CHAR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Radix62IdConverter
of
(boolean padStart, int charSize) Return an instance representing the specified parameter.Methods inherited from class me.ahoo.cosid.converter.RadixIdConverter
asLong, asString, getCharSize, getMaxId, maxCharSize, offset, stat
-
Field Details
-
MAX_CHAR_SIZE
public static final int MAX_CHAR_SIZE- See Also:
-
RADIX
public static final int RADIX- See Also:
-
INSTANCE
-
PAD_START
-
-
Constructor Details
-
Radix62IdConverter
public Radix62IdConverter(boolean padStart, int charSize)
-
-
Method Details
-
of
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
- padStartcharSize
- Size- Returns:
- Radix62IdConverter
-