The getInt method of the SafeArray Class contains the following signatures:
getInt(int sa_idx)
getInt(int sa_idx1, int sa_idx2)
Extracts an element of a one-dimensional SafeArray as an integer.
public native int getInt(int sa_idx);
Returns the converted element value.
sa_idx | The element index, which ranges from the index of the lower bound to the index of the upper bound. |
ClassCastException if the SafeArray element cannot be converted to the correct type using the Win32 VariantChangeType function.
IndexOutOfBoundsException if the array is not one-dimensional or if sa_idx lies outside the defined range (LBound() to UBound()).
Extracts an element of a two-dimensional array as an integer.
public int getInt(int sa_idx1, int sa_idx2);
Returns the converted element value.
sa_idx1 | The first dimension index of the element that is extracted, which ranges from LBound(1) to UBound(1). |
sa_idx2 | The second dimension index of the element that is extracted, which ranges from LBound(2) to UBound(2). |
ClassCastException if the SafeArray element cannot be converted to the correct type by using the Win32 VariantChangeType function.
IndexOutOfBoundsException if the array is not two-dimensional or if either index lies outside the defined range.