ColorPalette extends ListMap<String, Integer> { public boolean putMapping(String[] colors) { return processMapping(colors, false); } ColorPalette();  ColorPalette(Collection<Integer> c);  ColorPalette(int initialCapacity);  ColorPalette(ListMap<String, Integer> colors);  ColorPalette(ListMap<String, Integer> colors, boolean caseInsensative);  ColorPalette(ListMap<String, Integer> existingPalette, 
                        String[] order);  ColorPalette(Map<String, Integer> colors);  ColorPalette(Map<String, Integer> colors, String[] order); int add(String name, int rgba); int add(String name, int rgba, boolean full_alpha); int add(String name, String colordef); String canonicalKey(String name); Locale getPaletteLocale(); void setPaletteLocale(Locale paletteLocale); boolean addAll(int[] colors, boolean has_alpha); boolean addMapping(String[] colors); boolean addMappingResource(Class forLoader, String name); boolean putMappingResource(Class forLoader, String name); @Override Integer get(String key); int getColor(int indexOrColor); int getColorOrIndex(String keyOrColor); String[] getMapping(); int put(String name, String colordef); boolean putMapping(String[] colors); static Locale getDefaultPaletteLocale(); static void setDefaultPaletteLocale(Locale defaultPaletteLocale); @Override boolean add(String key, Integer value); @Override ColorPalette clone(); boolean isCaseInsensitive(); void setCaseInsensitive(boolean caseInsensitive); @Override int putKey(String newKey, String existingKey); @Override int putKey(String key, int index); boolean putMappingFile(String name); boolean addMappingFile(String name); static final String BLACKEN_COLOR_MAPPING_TYPE; static final Integer BLACKEN_COLOR_MAPPING_VERSION; static final String BLACKEN_COLOR_MAPPING_MIN_BLACKEN; }
@Test public void ColorPalette_int() { ColorPalette cp1 = new ColorPalette(16); assertEquals(0, cp1.size()); cp1.putMapping(ColorNames.STANDARD_16_COLORS); assertEquals(16, cp1.size()); }