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

A list of weak references. Holding objects in this list will not prevent them from being GC'ed. This interface does not abide by the usual Java [List](List) interface, hence the "pseudo".

## Constructor: WeakPseudoList

Description: Create an empty weak pseudo\-list.

## Constructor: WeakPseudoList
- parameter: `initialCapacity`, type: `int`

Description: Create an empty weak pseudo\-list with an initial capacity.
parameter: initialCapacity: initial capacity

## Constructor: WeakPseudoList
- parameter: `l`, type: `java.lang.Iterable<T>`

Description: Create a weak pseudo\-list from an iterable.
parameter: l: elements to add

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

Description: Add an element.
parameter: e: element to weakly reference
return: true if the list changed

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

Description: Insert an element.
parameter: index: insertion index
parameter: e: element to weakly reference

## Method: addAll
- parameter: `l`, type: `java.lang.Iterable<T>`

Description: Add all elements from an iterable.
parameter: l: elements to add

## Method: clear

Description: Remove all weak references.

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

Description: Retrieve an element.
parameter: index: element index
return: referenced element, or null if it was collected

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

Description: 
return: true if no weak reference is stored

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


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

Description: Remove an element.
parameter: index: element index
return: removed referenced element, or null if it was collected

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

Description: Replace an element.
parameter: index: element index
parameter: e: new element to weakly reference
return: previous referenced element, or null if it was collected

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

Description: 
return: number of weak references in the list

