@Test public void testNameListOrder() { List<String> names = ColorCodes.getNames(); assertEquals(340, names.size()); assertEquals("Black", names.get(0)); assertEquals("Night", names.get(1)); assertEquals("Gunmetal", names.get(2)); assertEquals("Sea Shell", names.get(337)); assertEquals("Milk White", names.get(338)); assertEquals("White", names.get(339)); }
public static List<String> getNames() { return Collections.unmodifiableList(instance.nameList); }
ColorCodes { public static List<String> getNames() { return Collections.unmodifiableList(instance.nameList); } }
ColorCodes { public static List<String> getNames() { return Collections.unmodifiableList(instance.nameList); } private  ColorCodes(); }
ColorCodes { public static List<String> getNames() { return Collections.unmodifiableList(instance.nameList); } 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 List<String> getNames() { return Collections.unmodifiableList(instance.nameList); } 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);  }