Searchable list of objects in Java

Posted by Christian on Stack Overflow See other posts from Stack Overflow or by Christian
Published on 2010-03-26T14:18:05Z Indexed on 2010/03/26 14:23 UTC
Read the original article Hit count: 373

Filed under:
|

I want to create a large (~300,000 entries) List of self defined objects of the class Drug. Every Drug has an ID and I want to be able to search the Drugs in logarithmic time via that ID. What kind of List do I have to use? How do I declare that it should be searchable via the ID?

© Stack Overflow or respective owner

Related posts about java

Related posts about list