java - How to filter a list based on the content of another list of a different type? -


i have 2 lists:

  1. list<someobject> objectlist;
  2. list<string> stringlist;

while someobject has member name of type string. best way check if stringlist contains string not name of someobject in objectlist?

iterate through objects in objectlist , add each name set<string> (let's call nameset). call nameset.containsall(stringlist).


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -