com.esri.arcgis.system
Interface ILongArray

All Superinterfaces:
Serializable
All Known Implementing Classes:
LongArray

public interface ILongArray
extends Serializable

Provides access to members that control long arrays.

Description

The ILongArray interface provides methods and properties for inserting, removing and accessing elements in a LongArray via a zero-based index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void add(int element)
          Adds an element to the array.
 int getCount()
          The number of elements in the array.
 int getElement(int index)
          An element in the array.
 void insert(int index, int element)
          Inserts an element to the array.
 void remove(int index)
          Removes an element from the array.
 void removeAll()
          Removes all elements from the array.
 void setElement(int index, int pElement)
          An element in the array.
 

Method Detail

getCount

int getCount()
             throws IOException,
                    AutomationException
The number of elements in the array.

Description

Returns the number of elements in the array.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
The pCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

void remove(int index)
            throws IOException,
                   AutomationException
Removes an element from the array.

Description

Removes the element at the specified index from the array. The element at the beginning or the array has an index of 0, and the element at the end of the array has in index of Count - 1.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
index - The index (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeAll

void removeAll()
               throws IOException,
                      AutomationException
Removes all elements from the array.

Description

Removes all of the elements from the array.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElement

int getElement(int index)
               throws IOException,
                      AutomationException
An element in the array.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
Returns:
The pElement
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setElement

void setElement(int index,
                int pElement)
                throws IOException,
                       AutomationException
An element in the array.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
pElement - The pElement (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

void add(int element)
         throws IOException,
                AutomationException
Adds an element to the array.

Description

Adds the element to the end of the array.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
element - The element (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insert

void insert(int index,
            int element)
            throws IOException,
                   AutomationException
Inserts an element to the array.

Description

Adds the element to the array at the specified index. The element at the beginning or the array has an index of 0, and the element at the end of the array has in index of Count - 1.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
index - The index (in)
element - The element (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.