An OsidList backed by an array — all elements loaded at construction time, fast to iterate.
The array-backed OsidList loads all elements into an internal
array at construction time. It is the simplest and most predictable implementation:
available() returns an exact count, iteration is O(1) per element, and there
are no I/O exceptions possible once constructed.
Use the array list when you have all results in memory and want to wrap them in an OsidList interface without buffering overhead.
| Parameter | Type | Description |
|---|---|---|
elements |
OsidObject[] |
the elements to expose through the OsidList interface |
| Parameter | Type | Description |
|---|---|---|
elements |
OsidObject... |
vararg elements |
Returns OsidObjectList