Annotation Interface Stat


@Target({FIELD,TYPE}) @Retention(RUNTIME) public @interface Stat
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defaults to the field name
    boolean
    If this is a Map, the keys of the map will be used as the value in a List
    boolean
    If this is a Collection or array, the size of the collection will be used as the value
  • Element Details

    • key

      String key
      Defaults to the field name
      Default:
      ""
    • sizeOnly

      boolean sizeOnly
      If this is a Collection or array, the size of the collection will be used as the value
      Default:
      false
    • mapKeysOnly

      boolean mapKeysOnly
      If this is a Map, the keys of the map will be used as the value in a List
      Default:
      false