Package me.ahoo.cosid

Interface Decorator<D>

All Known Subinterfaces:
IdGeneratorDecorator
All Known Implementing Classes:
ClockSyncCosIdGenerator, ClockSyncSnowflakeId, DatePrefixIdConverter, DefaultSnowflakeFriendlyId, GroupedPrefixIdConverter, LazyIdGenerator, MockIdGenerator, PrefixIdConverter, StringIdGeneratorDecorator, StringSegmentId, StringSnowflakeId, SuffixIdConverter, UncertaintyIdGenerator

@ThreadSafe public interface Decorator<D>
Decorator.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get decorator actual id generator.
    static <D> D
    getActual(D any)
     
  • Method Details

    • getActual

      @Nonnull D getActual()
      Get decorator actual id generator.
      Returns:
      actual id generator
    • getActual

      static <D> D getActual(D any)