public interface ConstantUtil {
interface Status {
int STATE_DISPLAY = 1;
int STATE_HIDDEN = 2;
int STATE_DELETED = 3;
}
interface SequenceName {
String MOUDLE_SEQUENCE = "intpub_moudle";
String MENU_SEQUENCE = "intpub_menu";
String INFO_SEQUENCE = "intpub_info";
String MOUDLE_PART_SEQUENCE = "intpub_moudle_part";
String PART_SEQUENCE = "intpub_part";
String ROLE_SEQUENCE = "intpub_role";
String USER_SEQUENCE = "intpub_user";
String MENU_ROLE_SEQUENCE = "intpub_menu_role";
}
interface HtmlUrl{
String HTML_URL="E:/onlineExam/project/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/IntpubWeb";
}
}
------解决方案--------------------
可以当做定义一些常量,你可以这样取到值,ConstantUtil.Status.STATE_DISPLAY
封装一下分类
ConstantUtil.SequenceName.MOUDLE_SEQUENCE
------解决方案--------------------
里面分几个对象来显示,给人的感觉定义更明确吧。。
个人理解
为什么这么去做,还是去问问写它的那个人吧
------解决方案--------------------
目测为了减少接口的定义,同时将常量分类