List.setSize

Overview | Methods | This Package | All Packages

List.setSize

Sets the number of items contained in the list. 

Syntax

public void setSize( int size )

Parameters

size

The new number of items in the list.

Exceptions

WFCInvalidArgumentException thrown if the size is less than zero.

Remarks

If the new size is larger that the old size, the new items are populated with null values. If the new size is smaller than the old size, items are removed.