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

A list ideally suited to contain 0 or 1 element. If the list contains 2 or more elements, an [ArrayList](ArrayList) will be used internally. However, if there is a high degree of certainty that the list contains 2\+ elements, it is better to use an [ArrayList](ArrayList) directly instead.

## Constructor: ArrayList1


## Constructor: ArrayList1
- parameter: `value`, type: `E`


## Method: add
- parameter: `index`, type: `int`
- parameter: `element`, type: `E`


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


## Method: remove
- parameter: `index`, type: `int`
- return type: `E`


## Method: set
- parameter: `index`, type: `int`
- parameter: `element`, type: `E`
- return type: `E`


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


