Methods

add(dataConnection) → Number

Add the dataConnection in the collection.

Parameter

Name Type Optional Description

dataConnection

DataConnection

 

Returns

Number 

clear()

Removes all elements from collection.

get(index) → DataConnection

Gets the element at the specified index.

Parameter

Name Type Optional Description

index

Number

 

Returns

DataConnection 

getCount()

Gets the number of elements actually contained in the collection.

getDataConnection(ID) → DataConnection

Gets the element at the specified ID.

Parameter

Name Type Optional Description

ID

long

 

ID of DataConnection

Returns

DataConnection DataConnection DataConnection.

getNextID()

The next available ID for new connections.

isExist(index) → boolean

Is exist item in the collection.

Parameter

Name Type Optional Description

index

Number

 

index of element.

Returns

boolean 

iterator() → Iterator

Supports a simple iteration over a nongeneric collection.

Returns

Iterator 

remove(dataConnection)

Remove the dataConnection from the collection.

Parameter

Name Type Optional Description

dataConnection

DataConnection

 

setNextID()

The next available ID for new connections.