All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jdsl.simple.ref.LinkedStack

java.lang.Object
   |
   +----jdsl.simple.ref.LinkedStack

public class LinkedStack
extends Object
implements Stack
Implementation of a stack by means of a linked list. The nodes of the linked list are represented by class Node which stores a reference to its element and the next node in the list.


Constructor Index

 o LinkedStack()

Method Index

 o isEmpty()
 o pop()
 o push(Object)
 o size()
 o top()

Constructors

 o LinkedStack
 public LinkedStack()

Methods

 o size
 public int size()
 o isEmpty
 public boolean isEmpty()
 o push
 public void push(Object obj)
 o top
 public Object top() throws StackEmptyException
 o pop
 public Object pop() throws StackEmptyException

All Packages  Class Hierarchy  This Package  Previous  Next  Index