Packagech.capi.data
Interfacepublic interface IDataStructure
SubinterfacesIHeap, IQueue, IStack

Represents a data structure.



Public Properties
 PropertyDefined by
  nextElement : *
[read-only] Defines the next element that will be removed from the data structure.
IDataStructure
Public Methods
 MethodDefined 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
Property detail
nextElementproperty
nextElement:*  [read-only]

Defines the next element that will be removed from the data structure.

Implementation
    public function get nextElement():*
Method detail
add()method
public function add(element:*):void

Add an element to the data structure.

Parameters
element:* — 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.

Returns
Booleantrue if there is no element into the structure.
remove()method 
public function remove():*

Removes an element from the data structure.

Returns
* — The element removed.