string - Java - Most efficient structure for quick retrieval -


i have simple problem: need check if large (150k) list of strings contains string. order not matter, , need check if list contains string. efficient data structure use?

look @ set (hashset, enumset) , hash (hashmap,linkedhash...,idnetityhash..) based implementations, have speed complexity of o(1) contains() method.

this great link use


Comments

Popular posts from this blog

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -