Package me.ahoo.cosid.converter
Class Radix36IdConverter
java.lang.Object
me.ahoo.cosid.converter.RadixIdConverter
me.ahoo.cosid.converter.Radix36IdConverter
- All Implemented Interfaces:
IdConverter
,Statistical
36 bit string ID converter like this [0-9][A-Z]{13} .
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Radix36IdConverter
static final int
static final Radix36IdConverter
static final int
Fields inherited from class me.ahoo.cosid.converter.RadixIdConverter
PAD_CHAR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Radix36IdConverter
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
-
Radix36IdConverter
public Radix36IdConverter(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
-