All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.Stack

java.lang.Object
   |
   +----JavaGroups.List
           |
           +----JavaGroups.Stack

public class Stack
extends List
implements Externalizable
LIFO stack, with better performance than java.util.Stack (based on Vector).


Constructor Index

 o Stack()

Method Index

 o Copy()
 o Empty()
 o main(String[])
 o Peek()
Returns element at the tail (if present), but does not remove it from list.
 o Pop()
 o Push(Object)
 o readExternal(ObjectInput)
 o writeExternal(ObjectOutput)

Constructors

 o Stack
 public Stack()

Methods

 o Push
 public void Push(Object obj)
 o Pop
 public Object Pop()
 o Peek
 public Object Peek()
Returns element at the tail (if present), but does not remove it from list.

Overrides:
Peek in class List
 o Empty
 public boolean Empty()
 o Copy
 public List Copy()
Overrides:
Copy in class List
 o writeExternal
 public void writeExternal(ObjectOutput out) throws IOException
Overrides:
writeExternal in class List
 o readExternal
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Overrides:
readExternal in class List
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index