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