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).
-
Stack()
-
-
Copy()
-
-
Empty()
-
-
main(String[])
-
-
Peek()
- Returns element at the tail (if present), but does not remove it from list.
-
Pop()
-
-
Push(Object)
-
-
readExternal(ObjectInput)
-
-
writeExternal(ObjectOutput)
-
Stack
public Stack()
Push
public void Push(Object obj)
Pop
public Object Pop()
Peek
public Object Peek()
- Returns element at the tail (if present), but does not remove it from list.
- Overrides:
- Peek in class List
Empty
public boolean Empty()
Copy
public List Copy()
- Overrides:
- Copy in class List
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Overrides:
- writeExternal in class List
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Overrides:
- readExternal in class List
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index