Package | ch.capi.data |
Interface | public interface IDataStructure |
Subinterfaces | IHeap, IQueue, IStack |
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.
Implementation public function get nextElement():*
add | () | method |
public function add(element:*):void
Add an element to the data structure.
Parameterselement:* — The element to add.
|
clear | () | method |
public function clear():void
Removes all the elements from the data structure.
isEmpty | () | method |
public function isEmpty():Boolean
Get if the structure is empty or not.
ReturnsBoolean — true if there is no element into
the structure.
|
remove | () | method |
public function remove():*
Removes an element from the data structure.
Returns* — The element removed.
|