SleelaDoc API
HTML documentation for the SLeeLa standard library (/lib)
Home › Packages › collections

Package collections

This package contains 9 source unit(s) defining 9 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

SLArray #sleela 2.5 (lib/collections/SLArray.sleela)

SLArray class

Defines the SLeeLa standard-library type SLArray used within the collections library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLIterator #sleela 2.5 (lib/collections/SLIterator.sleela)

SLIterator class

Defines the SLeeLa standard-library type SLIterator used within the collections library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLList #sleela 2.5 (lib/collections/SLList.sleela)

SLList class

A concrete, string-valued list with stable order and bounded index behavior. This first implementation deliberately avoids Generics.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
valuesString[] values = new String[0]No description in source.
sizeint size = 0No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
addvoid add(String value)Append one String. Existing capacity is reused after removals.
getString get(int index)Return null for an invalid index; valid indices are 0 through length()-1.
setboolean set(int index, String value)Replace a value; return false when the index is invalid.
removeAtboolean removeAt(int index)Remove at index and preserve the order of remaining values.
removevoid remove()Compatibility convenience: remove the final item, if present.
clearvoid clear()Clear the logical list; capacity remains available for reuse.
lengthint length()No description in source.
emptyboolean empty()No description in source.

SLMap #sleela 2.5 (lib/collections/SLMap.sleela)

SLMap class

Defines the SLeeLa standard-library type SLMap used within the collections library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLQueue #sleela 2.5 (lib/collections/SLQueue.sleela)

SLQueue class

Defines the SLeeLa standard-library type SLQueue used within the collections library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLRange #sleela 2.5 (lib/collections/SLRange.sleela)

SLRange class

Defines the SLeeLa standard-library type SLRange used within the collections library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLSet #sleela 2.5 (lib/collections/SLSet.sleela)

SLSet class

Defines the SLeeLa standard-library type SLSet used within the collections library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLStack #sleela 2.5 (lib/collections/SLStack.sleela)

SLStack class

Defines the SLeeLa standard-library type SLStack used within the collections library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLValueList #sleela 2.5 (lib/collections/SLValueList.sleela)

SLValueList class

a non-generic heterogeneous list for VM values.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
valuesAny[] values = new Any[0]No description in source.
sizeint size = 0No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
addvoid add(Any value)Append a value of any supported runtime kind, preserving reference identity.
getAny get(int index)Return null when index is outside the logical list.
setboolean set(int index, Any value)No description in source.
removeAtboolean removeAt(int index)No description in source.
removevoid remove()No description in source.
clearvoid clear()Capacity is retained for reuse; removed references are cleared for GC.
lengthint length()No description in source.
emptyboolean empty()No description in source.