摘要: 许多枚举通常与单个 int 值关联。所有枚举都有一个 ordinal 方法,它返回每个枚举常量类 型的数值位置。你可能想从序数中派生一个关联的 int 值: // Abuse of ordinal to derive an associated value - DON'T DO THIS publi 阅读全文
posted @ 2020-09-01 02:12 webzom 阅读(118) 评论(0) 推荐(0)