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 final class Broken2Enum extends Enum { 29 public static final Broken2Enum RED = new Broken2Enum("Red"); 30 public static final Broken2Enum GREEN = new Broken2Enum("Green"); 31 public static final Broken2Enum BLUE = new Broken2Enum(""); 33 private Broken2Enum(String color) { 34 super(color); 35 } 36 37 public static Broken2Enum getEnum(String color) { 38 return (Broken2Enum) getEnum(Broken2Enum.class, color); 39 } 40 41 public static Map getEnumMap() { 42 return getEnumMap(Broken2Enum.class); 43 } 44 45 public static List getEnumList() { 46 return getEnumList(Broken2Enum.class); 47 } 48 49 public static Iterator iterator() { 50 return iterator(Broken2Enum.class); 51 } 52 } 53 | Popular Tags |