Which Delphi data structure can hold a list of unique integers?

Viewed 21344

When I approach Java problems, I use the collection pattern. However, doing it in Delphi is quite a nightmare since there is no Integer object to handle things.

I need a data structure that holds numbers. I want to be able to add numbers, remove numbers, and check the contents of the collection, and each number must be unique.

I'm not interested in a solution I need to implement and test for bugs myself. Is there a ready object like Java's HashTable?

9 Answers
Related