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