| Line 235... |
Line 235... |
| 235 |
List<Long> transactions = new ArrayList<Long>();
|
235 |
List<Long> transactions = new ArrayList<Long>();
|
| 236 |
transactions.add(colorMapEntry.getKey());
|
236 |
transactions.add(colorMapEntry.getKey());
|
| 237 |
orderCategoryMap.put(ALL_OTHERS, transactions);
|
237 |
orderCategoryMap.put(ALL_OTHERS, transactions);
|
| 238 |
}
|
238 |
}
|
| 239 |
}
|
239 |
}
|
| 240 |
}else if(colorMapSize>1){
|
240 |
}else if(colorMapSize==2){
|
| 241 |
if(colorSet.contains(ColorCode.GREEN.toString())){
|
241 |
if(colorSet.contains(ColorCode.GREEN.toString())){
|
| 242 |
if(colorSet.contains(ColorCode.PURPLE.toString())){
|
242 |
if(colorSet.contains(ColorCode.PURPLE.toString())){
|
| 243 |
if(orderCategoryMap.containsKey(GREEN_AND_PURPULE)){
|
243 |
if(orderCategoryMap.containsKey(GREEN_AND_PURPULE)){
|
| 244 |
List<Long> transactions = orderCategoryMap.get(GREEN_AND_PURPULE);
|
244 |
List<Long> transactions = orderCategoryMap.get(GREEN_AND_PURPULE);
|
| 245 |
transactions.add(colorMapEntry.getKey());
|
245 |
transactions.add(colorMapEntry.getKey());
|
| Line 261... |
Line 261... |
| 261 |
}
|
261 |
}
|
| 262 |
}
|
262 |
}
|
| 263 |
}else if(colorSet.contains(ColorCode.PURPLE.toString())){
|
263 |
}else if(colorSet.contains(ColorCode.PURPLE.toString())){
|
| 264 |
if(orderCategoryMap.containsKey(PURPLE_AND_IN_RED_OR_WHITE)){
|
264 |
if(orderCategoryMap.containsKey(PURPLE_AND_IN_RED_OR_WHITE)){
|
| 265 |
List<Long> transactions = orderCategoryMap.get(PURPLE_AND_IN_RED_OR_WHITE);
|
265 |
List<Long> transactions = orderCategoryMap.get(PURPLE_AND_IN_RED_OR_WHITE);
|
| - |
|
266 |
transactions.add(colorMapEntry.getKey());
|
| - |
|
267 |
orderCategoryMap.put(PURPLE_AND_IN_RED_OR_WHITE, transactions);
|
| - |
|
268 |
}else{
|
| - |
|
269 |
List<Long> transactions = new ArrayList<Long>();
|
| - |
|
270 |
transactions.add(colorMapEntry.getKey());
|
| - |
|
271 |
orderCategoryMap.put(PURPLE_AND_IN_RED_OR_WHITE, transactions);
|
| - |
|
272 |
}
|
| - |
|
273 |
}else{
|
| - |
|
274 |
if(orderCategoryMap.containsKey(ALL_OTHERS)){
|
| - |
|
275 |
List<Long> transactions = orderCategoryMap.get(ALL_OTHERS);
|
| - |
|
276 |
transactions.add(colorMapEntry.getKey());
|
| - |
|
277 |
orderCategoryMap.put(ALL_OTHERS, transactions);
|
| - |
|
278 |
}else{
|
| - |
|
279 |
List<Long> transactions = new ArrayList<Long>();
|
| - |
|
280 |
transactions.add(colorMapEntry.getKey());
|
| - |
|
281 |
orderCategoryMap.put(ALL_OTHERS, transactions);
|
| - |
|
282 |
}
|
| - |
|
283 |
}
|
| - |
|
284 |
}else{
|
| - |
|
285 |
if(colorSet.contains(ColorCode.GREEN.toString())){
|
| - |
|
286 |
if(colorSet.contains(ColorCode.RED.toString()) || colorSet.contains(ColorCode.OTHER.toString())){
|
| - |
|
287 |
if(orderCategoryMap.containsKey(GREEN_AND_IN_RED_OR_WHITE)){
|
| - |
|
288 |
List<Long> transactions = orderCategoryMap.get(GREEN_AND_IN_RED_OR_WHITE);
|
| - |
|
289 |
transactions.add(colorMapEntry.getKey());
|
| - |
|
290 |
orderCategoryMap.put(GREEN_AND_IN_RED_OR_WHITE, transactions);
|
| - |
|
291 |
}else{
|
| - |
|
292 |
List<Long> transactions = new ArrayList<Long>();
|
| - |
|
293 |
transactions.add(colorMapEntry.getKey());
|
| - |
|
294 |
orderCategoryMap.put(GREEN_AND_IN_RED_OR_WHITE, transactions);
|
| - |
|
295 |
}
|
| - |
|
296 |
}else{
|
| - |
|
297 |
if(orderCategoryMap.containsKey(GREEN_AND_PURPULE)){
|
| - |
|
298 |
List<Long> transactions = orderCategoryMap.get(GREEN_AND_PURPULE);
|
| - |
|
299 |
transactions.add(colorMapEntry.getKey());
|
| - |
|
300 |
orderCategoryMap.put(GREEN_AND_PURPULE, transactions);
|
| - |
|
301 |
}else{
|
| - |
|
302 |
List<Long> transactions = new ArrayList<Long>();
|
| - |
|
303 |
transactions.add(colorMapEntry.getKey());
|
| - |
|
304 |
orderCategoryMap.put(GREEN_AND_PURPULE, transactions);
|
| - |
|
305 |
}
|
| - |
|
306 |
}
|
| - |
|
307 |
}else if(colorSet.contains(ColorCode.PURPLE.toString())){
|
| - |
|
308 |
if(orderCategoryMap.containsKey(PURPLE_AND_IN_RED_OR_WHITE)){
|
| - |
|
309 |
List<Long> transactions = orderCategoryMap.get(PURPLE_AND_IN_RED_OR_WHITE);
|
| 266 |
transactions.add(colorMapEntry.getKey());
|
310 |
transactions.add(colorMapEntry.getKey());
|
| 267 |
orderCategoryMap.put(PURPLE_AND_IN_RED_OR_WHITE, transactions);
|
311 |
orderCategoryMap.put(PURPLE_AND_IN_RED_OR_WHITE, transactions);
|
| 268 |
}else{
|
312 |
}else{
|
| 269 |
List<Long> transactions = new ArrayList<Long>();
|
313 |
List<Long> transactions = new ArrayList<Long>();
|
| 270 |
transactions.add(colorMapEntry.getKey());
|
314 |
transactions.add(colorMapEntry.getKey());
|