@Test public void testColorMap() { assertEquals(new Color(0, 0, 0), ColorCodes.getColor("Black")); assertEquals(new Color(12, 9, 10), ColorCodes.getColor("Night")); assertEquals(new Color(44, 53, 57), ColorCodes.getColor("Gunmetal")); assertEquals(new Color(255, 245, 238), ColorCodes.getColor("Sea Shell")); assertEquals(new Color(254, 252, 255), ColorCodes.getColor("Milk White")); assertEquals(new Color(255, 255, 255), ColorCodes.getColor("White")); }
public static Color getColor(String name) { return instance.colorMap.get(name); }
ColorCodes { public static Color getColor(String name) { return instance.colorMap.get(name); } }
ColorCodes { public static Color getColor(String name) { return instance.colorMap.get(name); } private  ColorCodes(); }
ColorCodes { public static Color getColor(String name) { return instance.colorMap.get(name); } private  ColorCodes(); static List<String> getNames(); static int indexOf(String name); static int indexOf(Color color); static Color getColor(String name); static String getName(Color color); static Color getColor(int index); static String getName(int index); }
ColorCodes { public static Color getColor(String name) { return instance.colorMap.get(name); } private  ColorCodes(); static List<String> getNames(); static int indexOf(String name); static int indexOf(Color color); static Color getColor(String name); static String getName(Color color); static Color getColor(int index); static String getName(int index);  }