title: memory efficient storage of set of integers for java
body: <p>I would like to store a set of integers efficiently. HashSet in Java is not so efficient in term of memory usage because of the wrapper class. Sorted array of integers would loose the amortized constant time look up. I also need to iterate through each element so BitSet is not great as well. </p>