Class IdConverterDecorator<T extends IdGenerator>

java.lang.Object
me.ahoo.cosid.spring.boot.starter.IdConverterDecorator<T>
Direct Known Subclasses:
SegmentIdConverterDecorator, SnowflakeIdConverterDecorator

public abstract class IdConverterDecorator<T extends IdGenerator> extends Object
  • Field Details

  • Constructor Details

    • IdConverterDecorator

      protected IdConverterDecorator(T idGenerator, IdConverterDefinition converterDefinition)
  • Method Details

    • decorate

      public T decorate()
    • newRadix

      protected IdConverter newRadix()
    • newRadix36

      protected IdConverter newRadix36()
    • newToString

      protected IdConverter newToString(IdConverter defaultIdConverter)
    • newSnowflakeFriendly

      protected IdConverter newSnowflakeFriendly()
    • newCustom

      protected IdConverter newCustom()
    • newIdGenerator

      protected abstract T newIdGenerator(IdConverter idConverter)