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

A memory\-efficient list of `int` primitives. Additions, retrieval, updates are supported. Deletes and insertions are not supported. 

 This class is not thread\-safe. 

 Note: [#hashCode()](#hashCode()) and [#equals(Object)](#equals(Object)) are not overridden.  

 Implementation note: internally, the primitives are stored in multiple buckets. The user may specify an initial bucket capacity and maximum capacity.

## Constructor: IntList

Description: Create a list with an initial capacity of 16 and bucket capacity of 65,536.

## Constructor: IntList
- parameter: `initialCapacity`, type: `int`
- parameter: `bucketCapacity`, type: `int`

Description: Create a list with custom bucket sizing.
parameter: initialCapacity: initial bucket capacity
parameter: bucketCapacity: maximum bucket capacity

## Method: add
- parameter: `val`, type: `int`

Description: Append a value.
parameter: val: value to append

## Method: clear

Description: Remove all elements.

## Method: get
- parameter: `index`, type: `int`
- return type: `int`

Description: Retrieve an element.
parameter: index: element index
return: value at the index

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

Description: 
return: true if this list has no elements

## Method: set
- parameter: `index`, type: `int`
- parameter: `val`, type: `int`

Description: Update an element.
parameter: index: element index
parameter: val: new value

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

Description: 
return: number of elements

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


