Package org.smoodi.annotation.array
Annotation Interface EmptyableArray
@Target({METHOD,PARAMETER,FIELD,LOCAL_VARIABLE})
@Retention(CLASS)
@Documented
public @interface EmptyableArray
비어있을 수 있는 Collection 혹은 Array임을 표시.
아래 경우, 반환값인 List<String>이 비어있을 수 있음을 표시함.
@EmptyableArray
publicList<String> getNames();
아래 경우, 필드가 비어있을 수 있음을 표시함.
@EmptyableArray
publicSet<String> names =new Set<>();
- Since:
- v1.1.0