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
FieldsModifier and TypeFieldDescriptionstatic final Radix36IdConverterstatic final intstatic final Radix36IdConverterstatic final intFields inherited from class me.ahoo.cosid.converter.RadixIdConverter
PAD_CHAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Radix36IdConverterof(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
-