摘要:
文章转自: https://segmentfault.com/a/1190000010755321 问题 在编码过程中,经常会遇到用某个数值来表示某种状态、类型或者阶段的情况,比如有这样一个枚举: public enum ComputerState { OPEN(10), //开启 CLOSE(11 阅读全文
posted @ 2018-10-23 15:24 donfy 阅读(620) 评论(0) 推荐(0)
|
|
|
|
摘要:
文章转自: https://segmentfault.com/a/1190000010755321 问题 在编码过程中,经常会遇到用某个数值来表示某种状态、类型或者阶段的情况,比如有这样一个枚举: public enum ComputerState { OPEN(10), //开启 CLOSE(11 阅读全文
posted @ 2018-10-23 15:24 donfy 阅读(620) 评论(0) 推荐(0) |
|