Index

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

A

addPair(Character, Character) - Method in interface BalanceChecker_Interface
Adds a pair of matching characters.
addPair(Character, Character) - Method in class BalanceChecker
Adds a pair of open/close characters.

B

BalanceChecker - Class in Unnamed Package
Checks for balanced symbols.
BalanceChecker() - Constructor for class BalanceChecker
Default constructor for the BalancedChecker.
BalanceChecker_Interface - Interface in Unnamed Package
Interface for the BalancChecker.
BalanceChecker_Tester - Class in Unnamed Package
Tester for Balanced Symbols
BalanceChecker_Tester() - Constructor for class BalanceChecker_Tester
 

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.
DuplicateCharacterException - Exception Class in Unnamed Package
Thrown when an application attempts to add a duplicate character (either opening or closing).
DuplicateCharacterException(String) - Constructor for exception class DuplicateCharacterException
Constructs a DuplicateCharacterException with the specified detail message.

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

isBalanced(String) - Method in interface BalanceChecker_Interface
Checks the given string and uses the pairs of symbols previously added with addPair to see if the string has balanced symbols.
isBalanced(String) - Method in class BalanceChecker
Checks the given parameter and returns true if it contains balanced symbols and returns false if the symbols are not balanced.
isClosing(Character) - Method in interface BalanceChecker_Interface
Checks to see if the given character has already been added as a closing character.
isClosing(Character) - Method in class BalanceChecker
Checks to see if the given character has already been added as a closing symbol.
isEmpty() - Method in class DLinked_StackGeneric
 
isEmpty() - Method in interface StackGeneric_Interface
Returns true if this stack is empty, returns false otherwise.
isOpening(Character) - Method in interface BalanceChecker_Interface
Checks to see if the given character has already been added as an opening character.
isOpening(Character) - Method in class BalanceChecker
Checks to see if the given character has already been added as an opening symbol.

M

main(String[]) - Static method in class BalanceChecker_Tester
Main method to test balanced symbols assignment.
main(String[]) - Static method in class StackGeneric_Demo
 
main(String[]) - Static method in class StackGeneric_Tester
 
makeNewStack() - Static method in class StackGeneric_Tester
 
match(Character, Character) - Method in interface BalanceChecker_Interface
Returns true if the two given characters are a pair of matching characters that have been previously added with the addPair method.
match(Character, Character) - Method in class BalanceChecker
Check of the two given characters are a match.

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.
A B C D E I M N P R S T 
All Classes and Interfaces|All Packages|Serialized Form