Annotation Interface UniqueString


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface UniqueString
Provides the annotation for a unique string. Set the value to the prefix.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The value of the unique string prefix.
    The separator to use between unique components.
  • Element Details

    • prefix

      String prefix
      The value of the unique string prefix.
      Returns:
      by default, the word unique.
      Default:
      "unique"
    • separator

      String separator
      The separator to use between unique components.
      Returns:
      by default, '_'
      Default:
      "_"