Retrieve the last available index from a business object array.
Syntax
int getLastIndex()
Returns
The last index to the last element in this BusObjArray.
Notes
Previously, the size() method was used to do this. That is, the user would use the size() of the business object array to retrieve the last index available in a BusObjArray. Unfortunately, this approach yields incorrect data if the BusObjArray contains gaps.
Like all Java arrays, BusObjArray is a zero relative array. This means that the size() method will return 1 greater than the getLastIndex() method.
Examples
The following example retrieves the last index in the business object array.
int lastElementIndex = items.getLastIndex();