Annotation Type Size
-
@Retention(RUNTIME) @Target(FIELD) public @interface SizeThe annotated element size must be between the specified boundaries (included).Supported types are:
STRING(length of string is evaluated)SET_OF_STRING(set size is evaluated)SET_OF_CI(set size is evaluated)LIST_OF_STRING(list size is evaluated)LIST_OF_CI(list size is evaluated)MAP_STRING_STRING(map size is evaluated)
nullelements are considered valid.