public interface UserConstant {
/**
* 性别
*/
int GIRL = 0;
int BOY = 1;
}
@Retention(RetentionPolicy.SOURCE)
@Target({ElementType.PARAMETER})
@IntDef(value = {UserConstant.BOY, UserConstant.GIRL})
public @interface Gender {
}
原创文章,作者:3628473679,如若转载,请注明出处:https://blog.ytso.com/273795.html