BBjVector

Creation Path

BBjAPI

|

+--BBjVector

Description

A BBjVector object is a single dimensional array that maintains a list of objects and dynamically sizes to fit the number of objects added.

Creation

The BBjVector object is created through the following BBjAPI object method:

Return Value

Method

BBjVector

makeVector()

Methods of BBjVector

Return Value

Method

void

addItem(Object item!)

void

clear()

Object

getItem(int index)

void

insertItem(int index, Object item!)

Object

removeItem(int index)

int

size()

void

setItem(int index, Object item!)

Remarks

Any allowed type or object can be put into a BBjVector. The index is 0-based. BBjVector implements java.util.Collection and java.util.List. Therefore, all methods of these interfaces are available on BBjVector. See http://java.sun.com for more details.

Constants

None.

Example

REM Create an instance of a BBjVector object

REM Obtain the instance of the BBjAPI object
LET myAPI!=BBjAPI()

REM Create an instance of the BBjVector object
LET myVector!=myAPI!.makeVector()

See Also

BBjAPI

BBj Object Variables

BBj Object Assignment

BBj Object Error Handling

BBj Object Operators

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.