Annotation Type CollectionSize


@Retention(RUNTIME) @Target(METHOD) public @interface CollectionSize
Applied to lists, sets, collections, and maps in order to limit their size
Author:
A248
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The maximum size
    int
    The minimum size
  • Element Details

    • min

      int min
      The minimum size
      Returns:
      the min size, inclusive
      Default:
      0
    • max

      int max
      The maximum size
      Returns:
      the max size, inclusive
      Default:
      2147483647