public void insertColor(String accountName,String accountType,int displayColor,int colorKey){
  mColorKeyMap.put(createKey(accountName,accountType,displayColor),colorKey);
  String key=createKey(accountName,accountType);
  ArrayList<Integer> colorPalette;
  if ((colorPalette=mColorPaletteMap.get(key)) == null) {
    colorPalette=new ArrayList<Integer>();
  }
  colorPalette.add(displayColor);
  mColorPaletteMap.put(key,colorPalette);
}

public void insertColor ( String accountName , String accountType , int displayColor , int colorKey ) { mColorKeyMap . put ( createKey ( accountName , accountType , displayColor ) , colorKey ) ; String key = createKey ( accountName , accountType ) ; ArrayList < Integer > colorPalette ; if ( ( colorPalette = mColorPaletteMap . get ( key ) ) == null ) { colorPalette = new ArrayList < Integer > ( ) ; } colorPalette . add ( displayColor ) ; mColorPaletteMap . put ( key , colorPalette ) ; }
inserts a color into the cache .
