# Class: com.pnfsoftware.jeb.core.units.Pool

A collection of entries that can be used by parsers to represent pools.

## Constructor: Pool
- parameter: `poolname`, type: `java.lang.String`

Description: Create a pool.
parameter: poolname: pool name

## Constructor: Pool
- parameter: `poolname`, type: `java.lang.String`
- parameter: `initialCapacity`, type: `int`

Description: Create a pool with an initial capacity.
parameter: poolname: pool name
parameter: initialCapacity: initial entry capacity

## Protected Field: list
Type: `java.util.List<T>`
Description: Pool entries.

## Protected Field: poolname
Type: `java.lang.String`
Description: Pool name.

## Method: add
- parameter: `e`, type: `T`

Description: Add an entry to the pool.
parameter: e: entry to add

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

Description: Retrieve an entry by index.
parameter: index: entry index
return: the entry

## Method: getAll
- return type: `java.util.List<T>`

Description: Retrieve all entries.
return: the mutable entry list

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

Description: Retrieve the pool name.
return: pool name

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

Description: Determine whether the pool is empty.
return: true if this pool has no entries

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


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

Description: Retrieve the number of entries.
return: entry count

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


