Class FastLongSet

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<Long>
com.pnfsoftware.jeb.util.collect.FastLongSet
All Implemented Interfaces:
Iterable<Long>, Collection<Long>, Set<Long>

public class FastLongSet extends AbstractSet<Long>
A (small) set of long values backed by a Bitmap for fast insertion/retrieval and zero allocation at run-time. The set range must not exceed 4G; the recommended max range should not exceed a few thousands.