A list of products. Usually owned by a Module.
Property name | Type | Info |
size | integer | The number of objects in the buffer. (Read-only) |
empty | boolean | True if the buffer is empty, otherwise false. |
front | Product | The first object in the buffer (or null). |
back | Product | The last object in the buffer (or null). |
Method name | Info | Return value |
get(integer) | Gets the object stored at an index. | Product (or null for invalid indices). |
push(Product) | Inserts an object to the back of the buffer. | None. |
insert(integer,Product) | Inserts an object before the specified index. | None. |
popBack() | Pops the last object in the buffer. | None. |
popFront() | Pops the first object in the buffer. | None. |
erase(integer) | Erases the object at the specified index from the list. | None. |
See dummyModule.js