Annotation Interface Key


@Retention(RUNTIME) @Target(RECORD_COMPONENT) public @interface Key
An annotation that tells the serializer/deserializer to use the specified key.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    @NotNull String
    A String to use as a key in the serializer/deserializer
  • Element Details

    • value

      @NotNull @NotNull String value
      A String to use as a key in the serializer/deserializer
      Returns:
      a String to use as a key in the serializer/deserializer
      Default:
      ""