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