public interface UserConstant { /** * 性别 */ int GIRL = 0; int BOY = 1; } @Retention(RetentionPolicy.SOURCE) @Target({ElementType.PARAMETER}) @IntDef(value = {UserConstant.BOY, UserConstant.GIRL}) public @interface Gender { }
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有