I am adding the following to the HashMap collection after each row in the UI form
Declaration
Map<String, List<String>> map = new HashMap<String, List<String>>();
List<String> valSetOne = new ArrayList<String>();
Code snippet
valSetOne.add("BMW");
valSetOne.add("Audi");
map.put("A1", valSetOne);
When I am in the second row in UI, I would like to check the above combination exist in the HashMap collection.
How can I check for the combination of values in each row?
containsValue()method?MapofLists. If you callcontainsValue(myList), it will check ifmyListis already contained within the values.