Linked OsidList Pattern

A linked-node OsidList — chain elements together for efficient forward iteration over long sequences.

Overview

The linked OsidList chains elements through linked nodes rather than loading them into a single array. This makes it a good choice for long result sets where random access is not needed and you want to avoid allocating a large contiguous array. Elements are still all in memory — the difference from an array is structural, not lazy.

Javadoc Reference

net.okapia.osid.jamocha.spi

Class Declaration Pattern

public final class LinkedOsidObjectList
extends Object
implements OsidObjectList

Constructor Pattern

LinkedOsidObjectList(Collection<OsidObject> elements)
ParameterTypeDescription
elements Collection<OsidObject> the elements to chain

Static Factory Method Pattern

static OsidObjectList of(Collection<OsidObject> elements)
ParameterTypeDescription
elements Collection<OsidObject> the source collection

Returns OsidObjectList