| Property | Defined By | ||
|---|---|---|---|
| nextElement : * [read-only]
Defines the next element that will be removed
from the data structure. | IDataStructure | ||
| Method | Defined By | ||
|---|---|---|---|
add(element:*):void
Add an element to the data structure. | IDataStructure | ||
clear():void
Removes all the elements from the data structure. | IDataStructure | ||
isEmpty():Boolean
Get if the structure is empty or not. | IDataStructure | ||
remove():*
Removes an element from the data structure. | IDataStructure | ||
| nextElement | property |
nextElement:* [read-only] Defines the next element that will be removed from the data structure.
public function get nextElement():*| add | () | method |
public function add(element:*):voidAdd an element to the data structure.
Parameters
element:* — The element to add.
|
| clear | () | method |
public function clear():voidRemoves all the elements from the data structure.
| isEmpty | () | method |
public function isEmpty():BooleanGet if the structure is empty or not.
ReturnsBoolean — true if there is no element in the structure.
|
| remove | () | method |
public function remove():*Removes an element from the data structure.
Returns* — The element removed.
|