C E G I L M N S T

C

CompositeListFactory - Class in listFW.factory
Manufactures concrete IMTList and INEList objects.

E

emptyCase(IMTList, Object) - Method in interface listFW.IListAlgo
Operates on MTList, the empty list.
emptyCase(IMTList, Object) - Method in class listFW.ToStringAlgo
Returns "()".
emptyCase(IMTList, Object) - Method in class listFW.ToStringHelper
Returns the accumulated String + ")".
emptyCase(IMTList, Object) - Method in class listFW.visitor.InsertInOrderWithFactory
Simply makes a new non-empty list with the given inp parameter as first.
execute(IListAlgo, Object) - Method in interface listFW.IList
A visitor pattern "hook" method that executes an IListAlgo.

G

getFirst() - Method in interface listFW.INEList
"Gettor" method for the list's first.
getRest() - Method in interface listFW.INEList
"Gettor" method for the list's rest.

I

IList - Interface in listFW
Serves as a host for an algorithm on a list to visit its internal structure.
IListAlgo - Interface in listFW
Represents an abstract algorithm to be executed by a host IList.
IListFactory - Interface in listFW
Abstract factory to manufacture IEmptyList and INEList.
IMTList - Interface in listFW
Represents the structural behavior of the immutable empty list.
INEList - Interface in listFW
Represents the structural behavior of an immutable non-empty list.
InsertInOrderWithFactory - Class in listFW.visitor
Inserts an Integer into an ordered host list, assuming the host list contains only Integer objects.
InsertInOrderWithFactory(IListFactory) - Constructor for class listFW.visitor.InsertInOrderWithFactory
 

L

listFW - package listFW
 
listFW.factory - package listFW.factory
 
listFW.visitor - package listFW.visitor
 
listFW.visitor.test - package listFW.visitor.test
 

M

makeEmptyList() - Method in class listFW.factory.CompositeListFactory
Creates an empty list.
makeEmptyList() - Method in interface listFW.IListFactory
Creates an empty list.
makeNEList(Object, IList) - Method in class listFW.factory.CompositeListFactory
Creates a non-empty list containing a given first and a given rest.
makeNEList(Object, IList) - Method in interface listFW.IListFactory
Creates a non-empty list containing a given first and a given rest.

N

nonEmptyCase(INEList, Object) - Method in interface listFW.IListAlgo
Operates on NEList, a non-empty list.
nonEmptyCase(INEList, Object) - Method in class listFW.ToStringAlgo
Passes "(" + first to the rest of IList and asks for help to complete the computation.
nonEmptyCase(INEList, Object) - Method in class listFW.ToStringHelper
Continues accumulating the String representation by appending ", " + first to acc and recur!
nonEmptyCase(INEList, Object) - Method in class listFW.visitor.InsertInOrderWithFactory
Recur!

S

Singleton - Static variable in class listFW.factory.CompositeListFactory
Singleton Pattern
Singleton - Static variable in class listFW.ToStringAlgo
 
Singleton - Static variable in class listFW.ToStringHelper
 

T

Test_InsertInOrderWithFactory - Class in listFW.visitor.test
A JUnit test case class.
Test_InsertInOrderWithFactory() - Constructor for class listFW.visitor.test.Test_InsertInOrderWithFactory
 
test_ordered_insert() - Method in class listFW.visitor.test.Test_InsertInOrderWithFactory
 
ToStringAlgo - Class in listFW
Computes a String reprsentation of IList showing a left parenthesis followed by elements of the IList separated by commas, ending with with a right parenthesis.
ToStringHelper - Class in listFW
Helps ToStringAlgo compute the String representation of the rest of the list.

C E G I L M N S T