Enum Class IdConverterDefinition.Type
java.lang.Object
java.lang.Enum<IdConverterDefinition.Type>
me.ahoo.cosid.spring.boot.starter.IdConverterDefinition.Type
- All Implemented Interfaces:
Serializable,Comparable<IdConverterDefinition.Type>,Constable
- Enclosing class:
- IdConverterDefinition
Enumeration of supported ID converter types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCustom converter implementation specified by class.Base62 radix conversion for compact alphanumeric IDs.Base36 radix conversion for uppercase alphanumeric IDs.Friendly format for snowflake IDs with timestamp formatting.Simple string conversion using toString(). -
Method Summary
Modifier and TypeMethodDescriptionstatic IdConverterDefinition.TypeReturns the enum constant of this class with the specified name.static IdConverterDefinition.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TO_STRING
Simple string conversion using toString(). -
SNOWFLAKE_FRIENDLY
Friendly format for snowflake IDs with timestamp formatting. -
RADIX
Base62 radix conversion for compact alphanumeric IDs. -
RADIX36
Base36 radix conversion for uppercase alphanumeric IDs. -
CUSTOM
Custom converter implementation specified by class.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-