Wraps exactly one OsidObject in the OsidList interface — no collection needed.
The single-element OsidList wraps exactly one object. It is the
lightest possible OsidList and avoids constructing any collection when only one result
exists. available() returns 1 until the element is consumed, then 0.
hasNext() returns true exactly once.
| Parameter | Type | Description |
|---|---|---|
element |
OsidObject |
the single element to expose |
| Parameter | Type | Description |
|---|---|---|
element |
OsidObject |
the element |
Returns OsidObjectList