Java中enum的使用
http://www.diybl.com/ 2008-3-21 网络 点击:
[ 评论 ]
文章搜索:
【点击打包该文章】
package vproManager.common;

public enum UserType ...{
General, Advanced, Admin;
public static UserType getValue(int type) ...{
switch (type) ...{
case 0:
return UserType.General;
case 1:
return UserType.Advanced;
case 2:
return UserType.Admin;
default:
return UserType.General;
}
}
};
如果图片或页面不能正常显示请点击这里 站内搜索:
推荐文章 |
