Annotation Interface AsString


@Target(FIELD) @Retention(RUNTIME) @Inherited public @interface AsString
The AsString annotation defines how to convert IDs.
  • Element Details

    • value

      Default:
      RADIX
    • radixPadStart

      boolean radixPadStart
      Default:
      true
    • radixCharSize

      int radixCharSize
      Default:
      11
    • epoch

      long epoch
      epoch of SnowflakeId.
      Returns:
      epoch
      Default:
      1577203200000L
    • timestampBit

      int timestampBit
      Default:
      41
    • machineBit

      int machineBit
      Default:
      10
    • sequenceBit

      int sequenceBit
      Default:
      12