Index

C D E I M N P R S T 
All Classes and Interfaces|All Packages|Serialized Form

C

clear() - Method in class DLinked_StackGeneric
 
clear() - Method in interface StackGeneric_Interface
Removes all elements from this stack.

D

DLinked_StackGeneric<E> - Class in Unnamed Package
A generic stack implemented with a doubly linked list.
DLinked_StackGeneric() - Constructor for class DLinked_StackGeneric
Constructs an empty stack.
DNode_Generic<E> - Class in Unnamed Package
A generic doubly linked node.
DNode_Generic(E) - Constructor for class DNode_Generic
Constructs a new node containing the specified data item.

E

element - Variable in class DNode_Generic
Data element stored in this node.
EmptyStackException - Exception Class in Unnamed Package
Exception thrown when trying to access elements of an empty stack.
EmptyStackException() - Constructor for exception class EmptyStackException
Default constructor.
EmptyStackException(String) - Constructor for exception class EmptyStackException
Constructs an EmpthStackException with the specified detail message.

I

isEmpty() - Method in class DLinked_StackGeneric
 
isEmpty() - Method in interface StackGeneric_Interface
Returns true if this stack is empty, returns false otherwise.

M

main(String[]) - Static method in class StackGeneric_Demo
 
main(String[]) - Static method in class StackGeneric_Tester
 
makeNewStack() - Static method in class StackGeneric_Tester
 

N

next - Variable in class DNode_Generic
Reference to the next node.

P

peek() - Method in class DLinked_StackGeneric
 
peek() - Method in interface StackGeneric_Interface
Returns but does not remove the element at the top of this stack.
pop() - Method in class DLinked_StackGeneric
 
pop() - Method in interface StackGeneric_Interface
Removes and returns the element at the top of this stack.
prev - Variable in class DNode_Generic
Reference to the previous node.
print(String[][]) - Static method in class TestResult
 
print(String[][], String[][]) - Static method in class TestResult
 
print(StackGeneric_Interface) - Static method in class StackGeneric_Demo
 
push(E) - Method in class DLinked_StackGeneric
 
push(E) - Method in interface StackGeneric_Interface
Adds the given element to the top of the stack.

R

reportTestResults(ArrayList<TestResult>) - Static method in class TestResult
 
runClearTests(StackGeneric_Interface<String>) - Static method in class StackGeneric_Tester
 
runConstructorTests() - Static method in class StackGeneric_Tester
 
runExceptionTests(StackGeneric_Interface<String>) - Static method in class StackGeneric_Tester
 
runPushPopTests(StackGeneric_Interface<String>) - Static method in class StackGeneric_Tester
 

S

size() - Method in class DLinked_StackGeneric
 
size() - Method in interface StackGeneric_Interface
Returns the number of elements in this stack.
StackGeneric_Demo - Class in Unnamed Package
 
StackGeneric_Demo() - Constructor for class StackGeneric_Demo
 
StackGeneric_Interface<E> - Interface in Unnamed Package
A generic stack.
StackGeneric_Tester - Class in Unnamed Package
 
StackGeneric_Tester() - Constructor for class StackGeneric_Tester
 
StackOfIntegers() - Static method in class StackGeneric_Demo
 
StackOfStrings() - Static method in class StackGeneric_Demo
 

T

TestResult - Class in Unnamed Package
Used with the tester program.
TestResult(String, int[], int[]) - Constructor for class TestResult
 
TestResult(String, Object, Object) - Constructor for class TestResult
 
TestResult(String, String[][], String[][]) - Constructor for class TestResult
 
TestResult(String, String[], String[]) - Constructor for class TestResult
 
TestResult(String, String, String) - Constructor for class TestResult
 
toString() - Method in class DLinked_StackGeneric
 
toString() - Method in interface StackGeneric_Interface
Returns a string containing each element in this list, separated by commas, enclosed in square brackets.
C D E I M N P R S T 
All Classes and Interfaces|All Packages|Serialized Form