Packagech.capi.data
Interfacepublic interface IStack extends IDataStructure, IList
ImplementorsStackList

Represents a LIFO list.



Public Properties
 PropertyDefined by
 Inheritedlength : int
Defines the number of elements contained into the IList.
IList
 InheritednextElement : *
Defines the next element that will be removed from the data structure.
IDataStructure
Public Methods
 MethodDefined by
 Inherited
add(element:*):void
Add an element to the data structure.
IDataStructure
 Inherited
addElement(element:*):void
Add an element into the IList.
IList
 Inherited
addElementAt(element:*, index:int):void
Add an element into the IList at the specified index.
IList
 Inherited
clear():void
Removes all the elements from the data structure.
IDataStructure
 Inherited
clear():void
Removes all the elements contained into this IList.
IList
 Inherited
getElementAt(index:int):*
Get the element at the specified index.
IList
 Inherited
getElementIndex(element:*):int
Get the index of the specified element.
IList
  
Get the top element of the IStack.
IStack
 Inherited
isEmpty():Boolean
Get if the structure is empty or not.
IDataStructure
 Inherited
remove():*
Removes an element from the data structure.
IDataStructure
 Inherited
removeElement(element:*):void
Removes an element from the IList.
IList
 Inherited
removeElementAt(index:int):*
Removes the element at the specified index from the IList.
IList
 Inherited
toArray():Array
Retrieves an Array from the IList.
IList
Method detail
getTopElement()method
public function getTopElement():*

Get the top element of the IStack.

Returns
* — The top element.