Annotation Interface SaveField


@Retention(RUNTIME) @Target(FIELD) public @interface SaveField
Add this annotation to fields that you want to be saved in your CustomItem.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Key that will be used to save the value of this field.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Field type that tells the type of this field.
  • Element Details

    • value

      String value
      Key that will be used to save the value of this field.
      Returns:
      Key.
    • fieldType

      FieldType fieldType
      Field type that tells the type of this field. Only primitive types and String is supported. You should not use other types inside a CustomItem.
      Returns:
      Field type.
      Default:
      STRING