List.getItems

Overview | Methods | This Package | All Packages

List.getItems

Retrieves an array containing the items in the list starting at the specified index for a designated number of items.

Syntax

public Object[] getItems( int src, int count )

public Object[] getItems( int src, int count, Class cls )

public Object[] getItems( int src, int count, Object[] val )

public Object[] getItems( int src, int count, Object[] val, int dst )

Parameters

src

The index to start retrieving items from.

count

The number of items to retrieve.

cls

The class to make the array. The resulting array will be this type.

val

The array to populate.

dst

The index in the val parameter at which to start inserting items.

Return Value

Returns the Object array containing all requested items.

Exceptions

WFCInvalidArgumentException thrown if the src parameter is greater than the item count or less than zero, the count parameter is out of bounds, or the index parameter is out of bounds.

Remarks

The resulting array will be of type cls if it is specified.