Package collections
SLArray #sleela 2.5 (lib/collections/SLArray.sleela)
SLArray class
Defines the SLeeLa standard-library type SLArray used within the collections library family.
SLIterator #sleela 2.5 (lib/collections/SLIterator.sleela)
SLIterator class
Defines the SLeeLa standard-library type SLIterator used within the collections library family.
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.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
values | String[] values = new String[0] | No description in source. |
size | int size = 0 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
add | void add(String value) | Append one String. Existing capacity is reused after removals. |
get | String get(int index) | Return null for an invalid index; valid indices are 0 through length()-1. |
set | boolean set(int index, String value) | Replace a value; return false when the index is invalid. |
removeAt | boolean removeAt(int index) | Remove at index and preserve the order of remaining values. |
remove | void remove() | Compatibility convenience: remove the final item, if present. |
clear | void clear() | Clear the logical list; capacity remains available for reuse. |
length | int length() | No description in source. |
empty | boolean 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.
SLQueue #sleela 2.5 (lib/collections/SLQueue.sleela)
SLQueue class
Defines the SLeeLa standard-library type SLQueue used within the collections library family.
SLRange #sleela 2.5 (lib/collections/SLRange.sleela)
SLRange class
Defines the SLeeLa standard-library type SLRange used within the collections library family.
SLSet #sleela 2.5 (lib/collections/SLSet.sleela)
SLSet class
Defines the SLeeLa standard-library type SLSet used within the collections library family.
SLStack #sleela 2.5 (lib/collections/SLStack.sleela)
SLStack class
Defines the SLeeLa standard-library type SLStack used within the collections library family.
SLValueList #sleela 2.5 (lib/collections/SLValueList.sleela)
SLValueList class
a non-generic heterogeneous list for VM values.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
values | Any[] values = new Any[0] | No description in source. |
size | int size = 0 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
add | void add(Any value) | Append a value of any supported runtime kind, preserving reference identity. |
get | Any get(int index) | Return null when index is outside the logical list. |
set | boolean set(int index, Any value) | No description in source. |
removeAt | boolean removeAt(int index) | No description in source. |
remove | void remove() | No description in source. |
clear | void clear() | Capacity is retained for reuse; removed references are cleared for GC. |
length | int length() | No description in source. |
empty | boolean empty() | No description in source. |