# Class: com.pnfsoftware.jeb.util.collect.FastLongSet

A \(small\) set of `long` values backed by a [Bitmap](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.

## Constructor: FastLongSet
- parameter: `from`, type: `long`
- parameter: `to`, type: `long`

Description: Create a set.
parameter: from: range start \(inclusive\)
parameter: to: range end \(exclusive\)

## Constructor: FastLongSet
- parameter: `end`, type: `long`

Description: Create a set for the range \[0, end\).
parameter: end: range end \(exclusive\)

## Constructor: FastLongSet
- parameter: `set0`, type: `com.pnfsoftware.jeb.util.collect.FastLongSet`

Description: Duplicate an existing set.
parameter: set0: source set

## Method: add
- parameter: `e`, type: `java.lang.Long`
- return type: `boolean`


## Method: addAll
- parameter: `c`, type: `java.util.Collection<? extends java.lang.Long>`
- return type: `boolean`


## Method: addAllFast
- parameter: `other`, type: `com.pnfsoftware.jeb.util.collect.FastLongSet`

Description: Fast version of [#addAll(Collection)](#addAll(Collection)). Restrictions: the input collection must be a [FastLongSet](FastLongSet) of the exact range.
parameter: other: source set

## Method: clear


## Method: contains
- parameter: `o`, type: `java.lang.Object`
- return type: `boolean`


## Method: containsAll
- parameter: `c`, type: `java.util.Collection<?>`
- return type: `boolean`


## Method: equals
- parameter: `obj`, type: `java.lang.Object`
- return type: `boolean`


## Method: hashCode
- return type: `int`


## Method: isEmpty
- return type: `boolean`


## Method: iterator
- return type: `java.util.Iterator<java.lang.Long>`


## Method: remove
- parameter: `o`, type: `java.lang.Object`
- return type: `boolean`


## Method: size
- return type: `int`


## Method: toString
- return type: `java.lang.String`


