Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Use the containsValue() method? Commented Feb 7, 2017 at 10:37
  • @Kayaman Does contains check for entire row? Commented Feb 7, 2017 at 10:38
  • You don't have rows. You have a Map of Lists. If you call containsValue(myList), it will check if myList is already contained within the values. Commented Feb 7, 2017 at 10:41
  • Consider looking at google.github.io/guava/releases/19.0/api/docs/com/google/common/… - it might simplify your list-in-map processing considerably and provide you with some helpful utility methods. Commented Feb 7, 2017 at 11:39
  • @ArturBiesiadowski Thanks for the suggestion. We do have a restriction in using third party libraries and due to this we wouldn't be able to external JAR files. Commented Feb 7, 2017 at 11:40