标签:style color get int string set
private Color(String name,int index) { this.setName(name); this.setIndex(index); }
private Color(String name,int index) { this.setName(name); this.setIndex(index); } public static String getName(int index) { for (Color c :Color.values()) { if(c.getIndex()==index) { return c.name; } } return null; }
标签:style color get int string set
原文地址:http://www.cnblogs.com/leiwei/p/3710521.html