java 求高手解释下面定义的意思
staticfinalintINC=1;staticfinalintDEC=2;staticfinalintCNT=4;staticfinalintWID=8;stati...
static final int INC = 1;
static final int DEC = 2;
static final int CNT = 4;
static final int WID = 8;
static final int WI = WID | INC;
static final int WD = WID | DEC;
static final int HEI = 16;
static final int HI = HEI | INC;
static final int HD = HEI | DEC;
static final int SPL = 32 | CNT;
static final int SIW = SPL | INC | WID;
static final int SDW = SPL | DEC | WID;
static final int SIH = SPL | INC | HEI;
static final int SDH = SPL | DEC | HEI;
我记得编译原理里有这种格式的,java里不知道什么意思
难道是将整型的值固定为特定的数吗? 展开
static final int DEC = 2;
static final int CNT = 4;
static final int WID = 8;
static final int WI = WID | INC;
static final int WD = WID | DEC;
static final int HEI = 16;
static final int HI = HEI | INC;
static final int HD = HEI | DEC;
static final int SPL = 32 | CNT;
static final int SIW = SPL | INC | WID;
static final int SDW = SPL | DEC | WID;
static final int SIH = SPL | INC | HEI;
static final int SDH = SPL | DEC | HEI;
我记得编译原理里有这种格式的,java里不知道什么意思
难道是将整型的值固定为特定的数吗? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询