1 16 package org.apache.commons.lang.enum; 17 18 import java.util.Iterator; 19 import java.util.List; 20 import java.util.Map; 21 22 28 public class Extended1Enum extends Enum { 29 public static final Extended1Enum ALPHA = new Extended1Enum("Alpha"); 30 public static final Extended1Enum BETA = new Extended1Enum("Beta"); 31 32 protected Extended1Enum(String name) { 33 super(name); 34 } 35 36 public static Extended1Enum getEnum(String name) { 37 return (Extended1Enum) getEnum(Extended1Enum.class, name); 38 } 39 40 public static Map getEnumMap() { 41 return getEnumMap(Extended1Enum.class); 42 } 43 44 public static List getEnumList() { 45 return getEnumList(Extended1Enum.class); 46 } 47 48 public static Iterator iterator() { 49 return iterator(Extended1Enum.class); 50 } 51 52 } 53 | Popular Tags |